Skip to content

Commit

Permalink
chore: use numeric literal separator for PHP version IDs (PHP-CS-Fixe…
Browse files Browse the repository at this point in the history
  • Loading branch information
keradus authored Jan 10, 2024
1 parent a5b275c commit 860da6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Fixer/ClassNotation/FinalInternalClassFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function __construct()
{
parent::__construct();

$this->checkAttributes = \PHP_VERSION_ID >= 80000;
$this->checkAttributes = \PHP_VERSION_ID >= 8_00_00;
}

public function configure(array $configuration): void
Expand Down
4 changes: 2 additions & 2 deletions src/Fixer/ClassNotation/OrderedTypesFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function bar(null|string|int $foo): string|int;
public function foo(\Stringable&\Countable $obj): int;
}
',
new VersionSpecification(80100),
new VersionSpecification(8_01_00),
['null_adjustment' => 'always_last']
),
new VersionSpecificCodeSample(
Expand All @@ -84,7 +84,7 @@ interface Bar
public function bar(null|string|int $foo): string|int;
}
',
new VersionSpecification(80000),
new VersionSpecification(8_00_00),
[
'sort_algorithm' => 'none',
'null_adjustment' => 'always_last',
Expand Down

0 comments on commit 860da6f

Please sign in to comment.