Last active
July 15, 2026 22:06
-
-
Save jrfnl/a23b568f7b99775a1a3434e7176ced48 to your computer and use it in GitHub Desktop.
Impact analysis proposed PHP 8.6 deprecation of namespace as constant and static property identifier 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.Keywords.ForbiddenNames.namespaceFound"/> | |
| <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.Keywords.ForbiddenNames.namespaceFound 21 | |
| ---------------------------------------------------------------------- | |
| A TOTAL OF 21 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 | |
| ---------------------------------------------------------------------------------------------------------- | |
| chi-teck\drupal-code-generator--4.2.0\src\GeneratorFactory.php 1 0 | |
| codeigniter4\framework--v4.7.3\system\ThirdParty\Kint\CallFinder.php 1 0 | |
| driftingly\rector-laravel--2.5.0\src\Rector\StaticCall\RouteActionCallableRector.php 1 0 | |
| facebook\php-business-sdk--25.0.2\src\FacebookAds\Object\Fields\ApplicationFields.php 1 0 | |
| felixfbecker\language-server-protocol--v1.5.3\src\SymbolKind.php 1 0 | |
| flix-tech\avro-serde-php--3.0.0\src\Objects\Schema\AttributeName.php 1 0 | |
| gusapi\gusapi--6.3.2\src\GusApi\Client\SoapActionMapper.php 1 0 | |
| illuminate\database--v13.18.0\Eloquent\Factories\Factory.php 1 0 | |
| joetannenbaum\chewie--0.1.11\src\Renderer.php 1 0 | |
| kint-php\kint--6.1.0\src\CallFinder.php 1 0 | |
| laravel\framework--v13.18.0\src\Illuminate\Database\Eloquent\Factories\Factory.php 1 0 | |
| mateusjunges\avro-serde-php--v3.0.1\src\Objects\Schema\AttributeName.php 1 0 | |
| nexusphp\cs-config--v3.28.5\src\Fixer\AbstractCustomFixer.php 1 0 | |
| php-soap\wsdl-reader--0.32.0\src\Metadata\Detector\ApacheMapDetector.php 1 0 | |
| phpactor\language-server-protocol--3.17.5\src\SymbolKind.php 1 0 | |
| phpseclib\phpseclib--3.0.55\phpseclib\Crypt\EC\Formats\Keys\XML.php 1 0 | |
| phpxmlrpc\phpxmlrpc--4.11.5\src\Wrapper.php 1 0 | |
| psy\psysh--v0.12.24\src\Completion\CompletionKind.php 1 0 | |
| simplesamlphp\xml-common--v2.8.1\src\XML\Container\XMLElementsTrait.php 1 0 | |
| sjbr\static-info-tables--v13.4.3\Classes\Cache\CachedClassLoader.php 1 0 | |
| staabm\thincache--1.1.0\src\thincache\CacheKeyNamespaced.php 1 0 | |
| ---------------------------------------------------------------------------------------------------------- | |
| A TOTAL OF 21 ERRORS AND 0 WARNINGS WERE FOUND IN 21 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: chi-teck\drupal-code-generator--4.2.0\src\GeneratorFactory.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 1 ERROR AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 18: ERROR Function name, class name, namespace name or constant name can not be reserved keyword 'namespace' (since version 8.6) | |
| (PHPCompatibility.Keywords.ForbiddenNames.namespaceFound) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 16: | |
| 17: private const string DIRECTORY = Application::ROOT . '/src/Command'; | |
| >> 18: private const string NAMESPACE = '\DrupalCodeGenerator\Command'; | |
| 19: | |
| 20: /** | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: codeigniter4\framework--v4.7.3\system\ThirdParty\Kint\CallFinder.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 1 ERROR AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 146: ERROR Function name, class name, namespace name or constant name can not be reserved keyword 'namespace' (since version 8.6) | |
| (PHPCompatibility.Keywords.ForbiddenNames.namespaceFound) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 144: ]; | |
| 145: | |
| >> 146: private static array $namespace = [ | |
| 147: T_STRING => true, | |
| 148: ]; | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: driftingly\rector-laravel--2.5.0\src\Rector\StaticCall\RouteActionCallableRector.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 1 ERROR AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 57: ERROR Function name, class name, namespace name or constant name can not be reserved keyword 'namespace' (since version 8.6) | |
| (PHPCompatibility.Keywords.ForbiddenNames.namespaceFound) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 55: * @var string | |
| 56: */ | |
| >> 57: public const NAMESPACE = 'namespace'; | |
| 58: | |
| 59: /** | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: facebook\php-business-sdk--25.0.2\src\FacebookAds\Object\Fields\ApplicationFields.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 1 ERROR AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 97: ERROR Function name, class name, namespace name or constant name can not be reserved keyword 'namespace' (since version 8.6) | |
| (PHPCompatibility.Keywords.ForbiddenNames.namespaceFound) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 95: const MONTHLY_ACTIVE_USERS_RANK = 'monthly_active_users_rank'; | |
| 96: const NAME = 'name'; | |
| >> 97: const NAMESPACE = 'namespace'; | |
| 98: const OBJECT_STORE_URLS = 'object_store_urls'; | |
| 99: const OWNER_BUSINESS = 'owner_business'; | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: felixfbecker\language-server-protocol--v1.5.3\src\SymbolKind.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 1 ERROR AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 12: ERROR Function name, class name, namespace name or constant name can not be reserved keyword 'namespace' (since version 8.6) | |
| (PHPCompatibility.Keywords.ForbiddenNames.namespaceFound) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 10: const FILE = 1; | |
| 11: const MODULE = 2; | |
| >> 12: const NAMESPACE = 3; | |
| 13: const PACKAGE = 4; | |
| 14: const CLASS_ = 5; | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: flix-tech\avro-serde-php--3.0.0\src\Objects\Schema\AttributeName.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 1 ERROR AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 14: ERROR Function name, class name, namespace name or constant name can not be reserved keyword 'namespace' (since version 8.6) | |
| (PHPCompatibility.Keywords.ForbiddenNames.namespaceFound) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 12: public const ITEMS = 'items'; | |
| 13: public const NAME = 'name'; | |
| >> 14: public const NAMESPACE = 'namespace'; | |
| 15: public const ORDER = 'order'; | |
| 16: public const SIZE = 'size'; | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: gusapi\gusapi--6.3.2\src\GusApi\Client\SoapActionMapper.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 1 ERROR AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 12: ERROR Function name, class name, namespace name or constant name can not be reserved keyword 'namespace' (since version 8.6) | |
| (PHPCompatibility.Keywords.ForbiddenNames.namespaceFound) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 10: { | |
| 11: public const PUBLIC_NAMESPACE = 'http://CIS/BIR/PUBL/2014/07/IUslugaBIRzewnPubl/'; | |
| >> 12: public const NAMESPACE = 'http://CIS/BIR/2014/07/IUslugaBIR/'; | |
| 13: | |
| 14: public const ACTIONS = [ | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: illuminate\database--v13.18.0\Eloquent\Factories\Factory.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 1 ERROR AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 125: ERROR Function name, class name, namespace name or constant name can not be reserved keyword 'namespace' (since version 8.6) | |
| (PHPCompatibility.Keywords.ForbiddenNames.namespaceFound) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 123: * @var string | |
| 124: */ | |
| >> 125: public static $namespace = 'Database\\Factories\\'; | |
| 126: | |
| 127: /** | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: joetannenbaum\chewie--0.1.11\src\Renderer.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 1 ERROR AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 9: ERROR Function name, class name, namespace name or constant name can not be reserved keyword 'namespace' (since version 8.6) | |
| (PHPCompatibility.Keywords.ForbiddenNames.namespaceFound) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 7: class Renderer | |
| 8: { | |
| >> 9: public static $namespace = 'App\\Prompts\\Renderers'; | |
| 10: | |
| 11: public static function setNamespace(string $namespace): void | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: kint-php\kint--6.1.0\src\CallFinder.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 1 ERROR AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 146: ERROR Function name, class name, namespace name or constant name can not be reserved keyword 'namespace' (since version 8.6) | |
| (PHPCompatibility.Keywords.ForbiddenNames.namespaceFound) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 144: ]; | |
| 145: | |
| >> 146: private static array $namespace = [ | |
| 147: T_STRING => true, | |
| 148: ]; | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: laravel\framework--v13.18.0\src\Illuminate\Database\Eloquent\Factories\Factory.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 1 ERROR AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 125: ERROR Function name, class name, namespace name or constant name can not be reserved keyword 'namespace' (since version 8.6) | |
| (PHPCompatibility.Keywords.ForbiddenNames.namespaceFound) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 123: * @var string | |
| 124: */ | |
| >> 125: public static $namespace = 'Database\\Factories\\'; | |
| 126: | |
| 127: /** | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: mateusjunges\avro-serde-php--v3.0.1\src\Objects\Schema\AttributeName.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 1 ERROR AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 14: ERROR Function name, class name, namespace name or constant name can not be reserved keyword 'namespace' (since version 8.6) | |
| (PHPCompatibility.Keywords.ForbiddenNames.namespaceFound) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 12: public const ITEMS = 'items'; | |
| 13: public const NAME = 'name'; | |
| >> 14: public const NAMESPACE = 'namespace'; | |
| 15: public const ORDER = 'order'; | |
| 16: public const SIZE = 'size'; | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: nexusphp\cs-config--v3.28.5\src\Fixer\AbstractCustomFixer.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 1 ERROR AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 27: ERROR Function name, class name, namespace name or constant name can not be reserved keyword 'namespace' (since version 8.6) | |
| (PHPCompatibility.Keywords.ForbiddenNames.namespaceFound) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 25: * Vendor namespace in fixer's name. | |
| 26: */ | |
| >> 27: protected static ?string $namespace; | |
| 28: | |
| 29: /** | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: php-soap\wsdl-reader--0.32.0\src\Metadata\Detector\ApacheMapDetector.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 1 ERROR AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 8: ERROR Function name, class name, namespace name or constant name can not be reserved keyword 'namespace' (since version 8.6) | |
| (PHPCompatibility.Keywords.ForbiddenNames.namespaceFound) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 6: final class ApacheMapDetector | |
| 7: { | |
| >> 8: public const NAMESPACE = 'http://xml.apache.org/xml-soap'; | |
| 9: | |
| 10: public static function detect(string $namespace, string $localName): bool | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: phpactor\language-server-protocol--3.17.5\src\SymbolKind.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 1 ERROR AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 9: ERROR Function name, class name, namespace name or constant name can not be reserved keyword 'namespace' (since version 8.6) | |
| (PHPCompatibility.Keywords.ForbiddenNames.namespaceFound) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 7: public const FILE = 1; | |
| 8: public const MODULE = 2; | |
| >> 9: public const NAMESPACE = 3; | |
| 10: public const PACKAGE = 4; | |
| 11: public const CLASS_ = 5; | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: phpseclib\phpseclib--3.0.55\phpseclib\Crypt\EC\Formats\Keys\XML.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 1 ERROR AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 44: ERROR Function name, class name, namespace name or constant name can not be reserved keyword 'namespace' (since version 8.6) | |
| (PHPCompatibility.Keywords.ForbiddenNames.namespaceFound) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 42: * @var string | |
| 43: */ | |
| >> 44: private static $namespace; | |
| 45: | |
| 46: /** | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: phpxmlrpc\phpxmlrpc--4.11.5\src\Wrapper.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 1 ERROR AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 34: ERROR Function name, class name, namespace name or constant name can not be reserved keyword 'namespace' (since version 8.6) | |
| (PHPCompatibility.Keywords.ForbiddenNames.namespaceFound) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 32: | |
| 33: /** @var string */ | |
| >> 34: protected static $namespace = '\\PhpXmlRpc\\'; | |
| 35: | |
| 36: /** @var string */ | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: psy\psysh--v0.12.24\src\Completion\CompletionKind.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 1 ERROR AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 51: ERROR Function name, class name, namespace name or constant name can not be reserved keyword 'namespace' (since version 8.6) | |
| (PHPCompatibility.Keywords.ForbiddenNames.namespaceFound) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 49: public const FUNCTION_NAME = 1 << 11; // foo|() | |
| 50: public const CONSTANT = 1 << 12; // CONST| | |
| >> 51: public const NAMESPACE = 1 << 13; // namespace Foo\|, use Foo\| | |
| 52: | |
| 53: // PsySH-specific | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: simplesamlphp\xml-common--v2.8.1\src\XML\Container\XMLElementsTrait.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 1 ERROR AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 26: ERROR Function name, class name, namespace name or constant name can not be reserved keyword 'namespace' (since version 8.6) | |
| (PHPCompatibility.Keywords.ForbiddenNames.namespaceFound) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 24: trait XMLElementsTrait | |
| 25: { | |
| >> 26: protected const string NAMESPACE = 'urn:x-simplesamlphp:namespace'; | |
| 27: | |
| 28: | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: sjbr\static-info-tables--v13.4.3\Classes\Cache\CachedClassLoader.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 1 ERROR AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 58: ERROR Function name, class name, namespace name or constant name can not be reserved keyword 'namespace' (since version 8.6) | |
| (PHPCompatibility.Keywords.ForbiddenNames.namespaceFound) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 56: * @var string | |
| 57: */ | |
| >> 58: protected static $namespace = 'SJBR\\StaticInfoTables\\Domain\\Model\\'; | |
| 59: | |
| 60: /** | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: staabm\thincache--1.1.0\src\thincache\CacheKeyNamespaced.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 1 ERROR AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 12: ERROR Function name, class name, namespace name or constant name can not be reserved keyword 'namespace' (since version 8.6) | |
| (PHPCompatibility.Keywords.ForbiddenNames.namespaceFound) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 10: * @var string | |
| 11: */ | |
| >> 12: public static $namespace = '/'; | |
| 13: | |
| 14: /** | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment