Skip to content

Commit 6cf4259

Browse files
committed
PHPStan: fixed errors
1 parent 34848ad commit 6cf4259

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/PhpDepend.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ private function readIdentifier($readNamespaceKeyword = FALSE)
243243
break;
244244
}
245245

246-
if (PHP_VERSION_ID >= 80000) {
246+
if (PHP_VERSION_ID >= 80000) { // @phpstan-ignore greaterOrEqual.alwaysTrue
247247
if ($token->is(T_NAME_QUALIFIED)) {
248248
$name = $token->getText();
249249
continue;
@@ -316,7 +316,7 @@ private function readUse()
316316
}
317317

318318
if (!$wasGroup && ($token->is(',') || $token->is(';'))) {
319-
$use[$short] = $name;
319+
$use[(string) $short] = $name;
320320
$short = FALSE;
321321
}
322322
}
@@ -347,7 +347,7 @@ private function readUseGroup($rootName, array &$uses)
347347
}
348348

349349
if ($token->is(',') || $token->is('}')) {
350-
$uses[$short] = $rootName . $name;
350+
$uses[(string) $short] = $rootName . $name;
351351
$short = FALSE;
352352

353353
if ($token->is('}')) {
@@ -377,7 +377,7 @@ private function readStaticClass()
377377
continue;
378378
}
379379

380-
if (PHP_VERSION_ID >= 80000) {
380+
if (PHP_VERSION_ID >= 80000) { // @phpstan-ignore greaterOrEqual.alwaysTrue
381381
if ($token->is(T_NAME_QUALIFIED) || $token->is(T_NAME_FULLY_QUALIFIED)) {
382382
$name = $token->getText();
383383
break;

0 commit comments

Comments
 (0)