Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some typos #252

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading