Last active
July 15, 2026 22:07
-
-
Save jrfnl/3ef53816ec959e53a7d86b6dbb1f900e to your computer and use it in GitHub Desktop.
Impact analysis proposed PHP 8.6 deprecation of SORT_LOCALE_STRING and alias on Packagist top 4000
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0"?> | |
| <ruleset name="Impact check for https://wiki.php.net/rfc/deprecations_php_8_6"> | |
| <!-- This ruleset should only be used in conjunction with PHPCompatibility at commit | |
| https://github.com/PHPCompatibility/PHPCompatibility/commit/cc67a3824dda9612896f5892c2d6d9408fa20d77 --> | |
| <file>sources</file> | |
| <arg name="extensions" value="php"/> | |
| <arg value="ps"/> | |
| <arg name="basepath" value="./sources/"/> | |
| <arg name="parallel" value="8"/> | |
| <arg name="no-colors"/> | |
| <arg name="ignore-annotations"/> | |
| <arg name="report" value="code,summary,source"/> | |
| <exclude-pattern>*/vendor/*</exclude-pattern> | |
| <exclude-pattern>*/node_modules/*</exclude-pattern> | |
| <!-- We are specifically and only checking for the PHP 8.6 deprecation(s). --> | |
| <config name="testVersion" value="8.6"/> | |
| <rule ref="PHPCompatibility.Constants.RemovedConstants.sort_locale_stringDeprecated"/> | |
| <rule ref="Internal.NoCodeFound"> | |
| <severity>0</severity> | |
| </rule> | |
| <rule ref="Internal.LineEndings.Mixed"> | |
| <severity>0</severity> | |
| </rule> | |
| </ruleset> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PHP CODE SNIFFER VIOLATION SOURCE SUMMARY | |
| ----------------------------------------------------------------------------------- | |
| SOURCE COUNT | |
| ----------------------------------------------------------------------------------- | |
| PHPCompatibility.Constants.RemovedConstants.sort_locale_stringDeprecated 17 | |
| ----------------------------------------------------------------------------------- | |
| A TOTAL OF 17 SNIFF VIOLATIONS WERE FOUND IN 1 SOURCE | |
| ----------------------------------------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PHP CODE SNIFFER REPORT SUMMARY | |
| -------------------------------------------------------------------------------------------------------------------------- | |
| FILE ERRORS WARNINGS | |
| -------------------------------------------------------------------------------------------------------------------------- | |
| cakephp\cakephp--5.4.0-RC2\src\Utility\Hash.php 0 2 | |
| cakephp\utility--5.4.0-RC2\Hash.php 0 2 | |
| hyperf\collection--v3.2.0\src\Collection.php 0 1 | |
| illuminate\collections--v13.18.0\Collection.php 0 1 | |
| in2code\powermail--13.1.0\Classes\ViewHelpers\Form\AdvancedSelectViewHelper.php 0 1 | |
| in2code\powermail--13.1.0\Classes\ViewHelpers\Form\SelectFieldViewHelper.php 0 1 | |
| laminas\laminas-ldap--2.20.0\src\Collection\DefaultIterator.php 0 2 | |
| laravel\framework--v13.18.0\src\Illuminate\Collections\Collection.php 0 1 | |
| shardj\zf1-future--1.25.0\library\Zend\Ldap\Collection\Iterator\Default.php 0 1 | |
| sjbr\static-info-tables--v13.4.3\Classes\ViewHelpers\Form\SelectViewHelper.php 0 1 | |
| typo3\cms-fluid--v14.3.4\Classes\ViewHelpers\Form\CountrySelectViewHelper.php 0 1 | |
| typo3\cms-fluid--v14.3.4\Classes\ViewHelpers\Form\SelectViewHelper.php 0 1 | |
| vimeo\psalm--7.0.0-beta19\src\Psalm\Internal\Provider\ParamsProvider\ArrayMultisortParamsProvider.php 0 2 | |
| -------------------------------------------------------------------------------------------------------------------------- | |
| A TOTAL OF 0 ERRORS AND 17 WARNINGS WERE FOUND IN 13 FILES | |
| -------------------------------------------------------------------------------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FILE: cakephp\cakephp--5.4.0-RC2\src\Utility\Hash.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 23: WARNING The constant "SORT_LOCALE_STRING" is deprecated since PHP 8.6; Use one of the Collator::*sort*() methods instead | |
| (PHPCompatibility.Constants.RemovedConstants.sort_locale_stringDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 21: use const SORT_ASC; | |
| 22: use const SORT_DESC; | |
| >> 23: use const SORT_LOCALE_STRING; | |
| 24: use const SORT_NATURAL; | |
| 25: use const SORT_NUMERIC; | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 1067: WARNING The constant "SORT_LOCALE_STRING" is deprecated since PHP 8.6; Use one of the Collator::*sort*() methods instead | |
| (PHPCompatibility.Constants.RemovedConstants.sort_locale_stringDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 1065: $type = SORT_NATURAL; | |
| 1066: } elseif ($type === 'locale') { | |
| >> 1067: $type = SORT_LOCALE_STRING; | |
| 1068: } else { | |
| 1069: $type = SORT_REGULAR; | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: cakephp\utility--5.4.0-RC2\Hash.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 23: WARNING The constant "SORT_LOCALE_STRING" is deprecated since PHP 8.6; Use one of the Collator::*sort*() methods instead | |
| (PHPCompatibility.Constants.RemovedConstants.sort_locale_stringDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 21: use const SORT_ASC; | |
| 22: use const SORT_DESC; | |
| >> 23: use const SORT_LOCALE_STRING; | |
| 24: use const SORT_NATURAL; | |
| 25: use const SORT_NUMERIC; | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 1067: WARNING The constant "SORT_LOCALE_STRING" is deprecated since PHP 8.6; Use one of the Collator::*sort*() methods instead | |
| (PHPCompatibility.Constants.RemovedConstants.sort_locale_stringDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 1065: $type = SORT_NATURAL; | |
| 1066: } elseif ($type === 'locale') { | |
| >> 1067: $type = SORT_LOCALE_STRING; | |
| 1068: } else { | |
| 1069: $type = SORT_REGULAR; | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: hyperf\collection--v3.2.0\src\Collection.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 1661: WARNING The constant "SORT_LOCALE_STRING" is deprecated since PHP 8.6; Use one of the Collator::*sort*() methods instead | |
| (PHPCompatibility.Constants.RemovedConstants.sort_locale_stringDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 1659: SORT_STRING => strcmp($values[0], $values[1]), | |
| 1660: SORT_NATURAL => strnatcmp((string) $values[0], (string) $values[1]), | |
| >> 1661: SORT_LOCALE_STRING => strcoll($values[0], $values[1]), | |
| 1662: default => $values[0] <=> $values[1], | |
| 1663: }; | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: illuminate\collections--v13.18.0\Collection.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 1659: WARNING The constant "SORT_LOCALE_STRING" is deprecated since PHP 8.6; Use one of the Collator::*sort*() methods instead | |
| (PHPCompatibility.Constants.RemovedConstants.sort_locale_stringDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 1657: SORT_STRING => strcmp($values[0], $values[1]), | |
| 1658: SORT_NATURAL => strnatcmp((string) $values[0], (string) $values[1]), | |
| >> 1659: SORT_LOCALE_STRING => strcoll($values[0], $values[1]), | |
| 1660: default => $values[0] <=> $values[1], | |
| 1661: }; | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: in2code\powermail--13.1.0\Classes\ViewHelpers\Form\AdvancedSelectViewHelper.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 192: WARNING The constant "SORT_LOCALE_STRING" is deprecated since PHP 8.6; Use one of the Collator::*sort*() methods instead | |
| (PHPCompatibility.Constants.RemovedConstants.sort_locale_stringDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 190: | |
| 191: if ($this->arguments['sortByOptionLabel']) { | |
| >> 192: asort($options, SORT_LOCALE_STRING); | |
| 193: } | |
| 194: | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: in2code\powermail--13.1.0\Classes\ViewHelpers\Form\SelectFieldViewHelper.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 298: WARNING The constant "SORT_LOCALE_STRING" is deprecated since PHP 8.6; Use one of the Collator::*sort*() methods instead | |
| (PHPCompatibility.Constants.RemovedConstants.sort_locale_stringDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 296: | |
| 297: if ($this->arguments['sortByOptionLabel']) { | |
| >> 298: asort($options, SORT_LOCALE_STRING); | |
| 299: } | |
| 300: | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: laminas\laminas-ldap--2.20.0\src\Collection\DefaultIterator.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 32: WARNING The constant "SORT_LOCALE_STRING" is deprecated since PHP 8.6; Use one of the Collator::*sort*() methods instead | |
| (PHPCompatibility.Constants.RemovedConstants.sort_locale_stringDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 30: | |
| 31: use const CASE_LOWER; | |
| >> 32: use const SORT_LOCALE_STRING; | |
| 33: | |
| 34: /** | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 291: WARNING The constant "SORT_LOCALE_STRING" is deprecated since PHP 8.6; Use one of the Collator::*sort*() methods instead | |
| (PHPCompatibility.Constants.RemovedConstants.sort_locale_stringDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 289: ErrorHandler::stop(); | |
| 290: } | |
| >> 291: ksort($entry, SORT_LOCALE_STRING); | |
| 292: return $entry; | |
| 293: } | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: laravel\framework--v13.18.0\src\Illuminate\Collections\Collection.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 1659: WARNING The constant "SORT_LOCALE_STRING" is deprecated since PHP 8.6; Use one of the Collator::*sort*() methods instead | |
| (PHPCompatibility.Constants.RemovedConstants.sort_locale_stringDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 1657: SORT_STRING => strcmp($values[0], $values[1]), | |
| 1658: SORT_NATURAL => strnatcmp((string) $values[0], (string) $values[1]), | |
| >> 1659: SORT_LOCALE_STRING => strcoll($values[0], $values[1]), | |
| 1660: default => $values[0] <=> $values[1], | |
| 1661: }; | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: shardj\zf1-future--1.25.0\library\Zend\Ldap\Collection\Iterator\Default.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 264: WARNING The constant "SORT_LOCALE_STRING" is deprecated since PHP 8.6; Use one of the Collator::*sort*() methods instead | |
| (PHPCompatibility.Constants.RemovedConstants.sort_locale_stringDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 262: $name = @ldap_next_attribute($this->_ldap->getResource(), $this->_current); | |
| 263: } | |
| >> 264: ksort($entry, SORT_LOCALE_STRING); | |
| 265: return $entry; | |
| 266: } | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: sjbr\static-info-tables--v13.4.3\Classes\ViewHelpers\Form\SelectViewHelper.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 405: WARNING The constant "SORT_LOCALE_STRING" is deprecated since PHP 8.6; Use one of the Collator::*sort*() methods instead | |
| (PHPCompatibility.Constants.RemovedConstants.sort_locale_stringDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 403: } | |
| 404: if ($this->arguments['sortByOptionLabel']) { | |
| >> 405: asort($options, SORT_LOCALE_STRING); | |
| 406: } | |
| 407: return $options; | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: typo3\cms-fluid--v14.3.4\Classes\ViewHelpers\Form\CountrySelectViewHelper.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 126: WARNING The constant "SORT_LOCALE_STRING" is deprecated since PHP 8.6; Use one of the Collator::*sort*() methods instead | |
| (PHPCompatibility.Constants.RemovedConstants.sort_locale_stringDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 124: } | |
| 125: if ($this->arguments['sortByOptionLabel']) { | |
| >> 126: asort($options, SORT_LOCALE_STRING); | |
| 127: } else { | |
| 128: ksort($options, SORT_NATURAL); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: typo3\cms-fluid--v14.3.4\Classes\ViewHelpers\Form\SelectViewHelper.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 208: WARNING The constant "SORT_LOCALE_STRING" is deprecated since PHP 8.6; Use one of the Collator::*sort*() methods instead | |
| (PHPCompatibility.Constants.RemovedConstants.sort_locale_stringDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 206: } | |
| 207: if ($this->arguments['sortByOptionLabel']) { | |
| >> 208: asort($options, SORT_LOCALE_STRING); | |
| 209: } | |
| 210: return $options; | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: vimeo\psalm--7.0.0-beta19\src\Psalm\Internal\Provider\ParamsProvider\ArrayMultisortParamsProvider.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 27: WARNING The constant "SORT_LOCALE_STRING" is deprecated since PHP 8.6; Use one of the Collator::*sort*() methods instead | |
| (PHPCompatibility.Constants.RemovedConstants.sort_locale_stringDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 25: use const SORT_DESC; | |
| 26: use const SORT_FLAG_CASE; | |
| >> 27: use const SORT_LOCALE_STRING; | |
| 28: use const SORT_NATURAL; | |
| 29: use const SORT_NUMERIC; | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 161: WARNING The constant "SORT_LOCALE_STRING" is deprecated since PHP 8.6; Use one of the Collator::*sort*() methods instead | |
| (PHPCompatibility.Constants.RemovedConstants.sort_locale_stringDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 159: SORT_NUMERIC, | |
| 160: SORT_STRING, | |
| >> 161: SORT_LOCALE_STRING, | |
| 162: SORT_NATURAL, | |
| 163: SORT_STRING|SORT_FLAG_CASE, | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment