|
@@ -72,18 +72,18 @@ final class NativeFunctionTypeDeclarationCasingFixer extends AbstractFixer
|
|
|
'void' => true,
|
|
|
];
|
|
|
|
|
|
- if (\PHP_VERSION_ID >= 80000) {
|
|
|
+ if (\PHP_VERSION_ID >= 8_00_00) {
|
|
|
$this->hints['false'] = true;
|
|
|
$this->hints['mixed'] = true;
|
|
|
$this->hints['null'] = true;
|
|
|
$this->hints['static'] = true;
|
|
|
}
|
|
|
|
|
|
- if (\PHP_VERSION_ID >= 80100) {
|
|
|
+ if (\PHP_VERSION_ID >= 8_01_00) {
|
|
|
$this->hints['never'] = true;
|
|
|
}
|
|
|
|
|
|
- if (\PHP_VERSION_ID >= 80200) {
|
|
|
+ if (\PHP_VERSION_ID >= 8_02_00) {
|
|
|
$this->hints['true'] = true;
|
|
|
}
|
|
|
|
|
@@ -107,7 +107,7 @@ final class NativeFunctionTypeDeclarationCasingFixer extends AbstractFixer
|
|
|
),
|
|
|
new VersionSpecificCodeSample(
|
|
|
"<?php\nfunction Foo(Object \$a)\n{\n return 'hi!';\n}\n",
|
|
|
- new VersionSpecification(70200)
|
|
|
+ new VersionSpecification(7_02_00)
|
|
|
),
|
|
|
]
|
|
|
);
|