FunctionDeclarations/RemovedReturnByReferenceFromVoid: bug fix - type keywords are case in-sensitive + more tests by jrfnl · Pull Request #1560 · PHPCompatibility/PHPCompatibility

FunctionDeclarations/RemovedReturnByReferenceFromVoid: rework a test to data provider

FunctionDeclarations/RemovedReturnByReferenceFromVoid: bug fix - type keywords are case in-sensitive

See: https://3v4l.org/DgnOC

Tested by adjusting some of the existing unit tests.

FunctionDeclarations/RemovedReturnByReferenceFromVoid: add tests with PHP 7.4+ arrow functions

The sniff already handles this correctly, no changes needed.

FunctionDeclarations/RemovedReturnByReferenceFromVoid: add tests with PHP 8.1+ enums

The sniff already handles this correctly, no changes needed.