The getMethodParameters() method in the PHPCompatibility_Sniff class is a duplicate of an upstream method. The upstream method missed some type hints and didn't recognize nullable types.
The upstream PRs fixing this have now been merged with some very minor changes to the original merge proposal.
This PR syncs the duplicate method in the PHPCompatibility_Sniff class with the version as now merged upstream.
To maintain compatibility with PHPCS version lower than the current dev-master, the method cannot be removed until the minimum PHPCS version for the PHPCompatibility library has moved beyond the version in which these changes have been merged.
Sync the `getMethodParameters()` method with the version now merged i…
Coverage remained the same at 96.861% when pulling 196892d on jrfnl:feature/sync-copied-method-with-phpcs into 4853c6d on wimg:master.