Skip to content

Commit 4dfd217

Browse files
committed
Remove obsolete PHP version checks
1 parent 64d9299 commit 4dfd217

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Compiler/CheckArgumentsValidityPass.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ protected function processValue(mixed $value, bool $isRoot = false): mixed
4141
$i = 0;
4242
$hasNamedArgs = false;
4343
foreach ($value->getArguments() as $k => $v) {
44-
if (\PHP_VERSION_ID >= 80000 && preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/', $k)) {
44+
if (preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/', $k)) {
4545
$hasNamedArgs = true;
4646
continue;
4747
}
@@ -79,7 +79,7 @@ protected function processValue(mixed $value, bool $isRoot = false): mixed
7979
$i = 0;
8080
$hasNamedArgs = false;
8181
foreach ($methodCall[1] as $k => $v) {
82-
if (\PHP_VERSION_ID >= 80000 && preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/', $k)) {
82+
if (preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/', $k)) {
8383
$hasNamedArgs = true;
8484
continue;
8585
}

0 commit comments

Comments
 (0)