Skip to content

Commit

Permalink
Fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
dritter committed Nov 13, 2024
1 parent f7b47d4 commit 65cd88d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Command/AbstractOpcacheCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ abstract class AbstractOpcacheCommand extends AbstractCommand
protected function ensureSuccessfulOpcacheCall($info)
{
if ($info === false) {
throw new \RuntimeException('opcache_get_status(): No Opcache status info available. Perhaps Opcache is disabled via opcache.enable or opcache.enable_cli?');
throw new \RuntimeException('opcache_get_status(): No Opcache status info available. Perhaps Opcache is disabled via opcache.enable or opcache.enable_cli?');
}

if ($info['restart_pending'] ?? false) {
$cacheStatus = $info['cache_full'] ? 'Also, you cache is full.' : '';
throw new \RuntimeException("OPCache is restart, as such files can't be invalidated. Try again later. {$cacheStatus}");
$cacheStatus = $info['cache_full'] ? 'Also, your cache is full.' : '';
throw new \RuntimeException("OPCache is restarting, as such files can't be invalidated. Try again later. {$cacheStatus}");
}

$file_cache_only = $info['file_cache_only'] ?? false;
Expand Down

0 comments on commit 65cd88d

Please sign in to comment.