Update wimg/php-compatibility in / from 8.0.1 to 8.1.0 #2
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
wimg/php-compatibility
(a packagist dependency in/
) from "8.0.1" to "8.1.0".8.1.0
See all related issues and PRs in the 8.1.0 milestone.
Added
NewConstants
andRemovedConstants
sniffs to detect usage of new/removed PHP constants for all PHP versions from PHP 5 up. #526, #551, #566. Fixes #263.MagicAutoloadDeprecation
sniff to detect deprecated__autoload()
functions as deprecated in PHP 7.2. #540OptionalRequiredFunctionParameter
sniff to check for missing function call parameters which were required and only became optional in a later PHP version. #524DynamicAccessToStatic
sniff to detect dynamic access to static methods and properties, as well as class constants, prior to PHP 5.3. #535. Fixes #534.DeprecatedFunctions
sniff: recognize yet more PHP 7.2 deprecated functions. #561, #566DeprecatedIniDirectives
sniff: recognize the last of the PHP 7.2 deprecated ini directives. #566, #567NewFunctions
: detection of all new PHP 7.2 functions added. #522, #545, #551, #565RemovedExtensions
: report on usage of themcrypt
extension which has been removed in PHP 7.2. #566RemovedGlobalVariables
: detection of the use of$php_errormsg
withtrack_errors
which has been deprecated in PHP 7.2. #528Changed
NewClosures
: downgraded "$this found in closure outside class" to warning. #536. Fixes #527.ForbiddenGlobalVariableVariable
: the sniff will now throw an error for each variable in aglobal
statement which is no longer supported and show the variable found to make it easier to fix this. Previously only one error would be thrown perglobal
statement. #564ForbiddenGlobalVariableVariable
: the sniff will now throwwarning
s for non-bare variables used in aglobal
statement as those are discouraged since PHP 7.0. #564NewLanguageConstructs
: updated the version number forT_COALESCE_EQUAL
. #523Sniff::getTestVersion()
: simplified regex logic. #520FindExtendedClassname()
method with upstream. #507DealerDirect/phpcodesniffer-composer-installer
Composer plugin has been upped to0.4.3
. #548Fixed
ForbiddenCallTimePassByReference
: a false positive was being thrown when a global constant was followed by a bitwise and. #562. Fixes #39.ForbiddenGlobalVariableVariable
: the sniff was overzealous and would also report onglobal
in combination with variable variables which are still supported. #564. Fixes #537.ForbiddenGlobalVariableVariable
: variables interspersed with whitespace and/or comments were not being reported. #564ForbiddenNamesAsInvokedFunctions
: improved recognition of function invocations using forbidden words and prevent warnings for keywords which are no longer forbidden as method names in PHP 7.0+. #516. Fixes #515VariableVariables
: variables interspersed with whitespace and/or comments were not being reported. #563Credits
Thanks go out to Juliette Reinders Folmer and Jonathan Van Belle for their contributions to this version. 👏