Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Nov 29, 2023
1 parent 12459ab commit 6399d18
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Psalm/Internal/Cli/Psalm.php
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,10 @@ private static function restart(array $options, int $threads, Progress $progress
$progress->write(PHP_EOL
. 'Install the opcache extension to make use of JIT for a 20%+ performance boost!'
. PHP_EOL . PHP_EOL);
} elseif (!opcache_get_status(false)['jit']['on']) {

Check failure on line 905 in src/Psalm/Internal/Cli/Psalm.php

View workflow job for this annotation

GitHub Actions / build

PossiblyUndefinedStringArrayOffset

src/Psalm/Internal/Cli/Psalm.php:905:20: PossiblyUndefinedStringArrayOffset: Possibly undefined array offset ''jit'' is risky given expected type 'array-key'. Consider using isset beforehand. (see https://psalm.dev/216)

Check failure on line 905 in src/Psalm/Internal/Cli/Psalm.php

View workflow job for this annotation

GitHub Actions / build

PossiblyInvalidArrayAccess

src/Psalm/Internal/Cli/Psalm.php:905:20: PossiblyInvalidArrayAccess: Cannot access array value on non-array variable of type false (see https://psalm.dev/109)

Check failure on line 905 in src/Psalm/Internal/Cli/Psalm.php

View workflow job for this annotation

GitHub Actions / build

MixedArrayAccess

src/Psalm/Internal/Cli/Psalm.php:905:20: MixedArrayAccess: Cannot access array value on mixed variable (see https://psalm.dev/051)
$progress->write(PHP_EOL
. 'The opcache extension could not be enabled, please report this issue to the Psalm repo!'
. PHP_EOL . PHP_EOL);
}
}

Expand Down

0 comments on commit 6399d18

Please sign in to comment.