Update phpcompatibility/php-compatibility in / from 9.0.0 to 9.1.0 #10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Dependencies.io has updated
phpcompatibility/php-compatibility
(a packagist dependency in/
) from "9.0.0" to "9.1.0".9.1.0
See all related issues and PRs in the 9.1.0 milestone.
Added
PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue
sniff to detect code which could be affected by the PHP 7.0 change in the values reported byfunc_get_arg()
,func_get_args()
,debug_backtrace()
and exception backtraces. #750. Fixes #585.PHPCompatibility.MethodUse.NewDirectCallsToClone
sniff to detect direct call to a__clone()
magic method which wasn't allowed prior to PHP 7.0. #743. Fixes #629.PHPCompatibility.Variables.ForbiddenThisUseContext
sniff to detect most of the inconsistencies surrounding the use of the$this
variable, which were removed in PHP 7.1. #762, #771. Fixes #262 and #740.NewClasses
: detection of more native PHP Exceptions. #743, #753NewConstants
: detection of the new PHP 7.3 Curl, Stream Crypto and LDAP constants and some more PHP 7.0 Tokenizer constants. #752, #767, #778NewFunctions
sniff: recognize (more) new LDAP functions as introduced in PHP 7.3. #768NewFunctionParameters
sniff: recognize the new$serverctrls
parameter which was added to a number of LDAP functions in PHP 7.3. #769NewIniDirectives
sniff: recognize the newimap.enable_insecure_rsh
ini directive as introduced in PHP 7.1.25, 7.2.13 and 7.3.0. #770NewInterfaces
sniff: recognize two more Session related interfaces which were introduced in PHP 5.5.1 and 7.0 respectively. #748findStartOfStatement()
method to thePHPCompatibility\PHPCSHelper
class to allow for PHPCS cross-version usage of that method. #750Changed
RemovedPHP4StyleConstructors
: will now also detect PHP4-style constructors when declared in interfaces. #751Sniff::validDirectScope()
: the return value of this method has changed. Previously it would always be a boolean. It will stil returnfalse
when no valid direct scope has been found, but it will now return thestackPtr
to the scope token if a valid direct scope was encountered. #758NewOperators
: updated the version number forT_COALESCE_EQUAL
. #746Note: full PHP 7.3 support is only available in combination with PHP_CodeSniffer 2.9.2 or 3.3.1+ due to an incompatibility within PHP_CodeSniffer itself.
Fixed
Tokenizer
regarding binary type casts. #760InternalInterfaces
: false negative for implemented/extended interfaces prefixed with a namespace separator. #775NewClasses
: the introduction version of various native PHP Exceptions has been corrected. #743, #753NewInterfaces
: false negative for implemented/extended interfaces prefixed with a namespace separator. #775RemovedPHP4StyleConstructors
: the sniff would examine methods in nested anonymous classes as if they were methods of the higher level class. #751RemovedPHP4StyleConstructors
: the sniff will no longer throw false positives for the first method in an anonymous class when used in combination with PHPCS 2.3.x. #751ReservedFunctionNames
: fixed incorrect error message text for methods in anonymous classes when used in combination with PHPCS 2.3.x. #755ReservedFunctionNames
: prevent duplicate errors being thrown for methods in nested anonymous classes. #755PHPCSHelper::findEndOfStatement()
: minor bug fix. #749Sniff::isClassProperty()
: class properties for classes nested in conditions or function calls were not always recognized as class properties. #758Credits
Thanks go out to Jonathan Champ for his contribution to this version. 👏