diff --git a/phpunit.xml b/phpunit.xml index 41fc5ce3..6ef8f346 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -28,5 +28,6 @@ + diff --git a/src/Listener/UpdateCastorListener.php b/src/Listener/UpdateCastorListener.php index 0228aaa4..ea41a7ad 100644 --- a/src/Listener/UpdateCastorListener.php +++ b/src/Listener/UpdateCastorListener.php @@ -3,6 +3,7 @@ namespace Castor\Listener; use Castor\Console\Application; +use Castor\PlatformUtil; use JoliCode\PhpOsHelper\OsHelper; use Psr\Cache\CacheItemPoolInterface; use Psr\Log\LoggerInterface; @@ -32,6 +33,9 @@ public function checkUpdate(ConsoleCommandEvent $event): void if (class_exists(\RepackedApplication::class)) { return; } + if (PlatformUtil::getEnv('DISABLE_VERSION_CHECK')) { + return; + } $command = $event->getCommand(); if (!$command) {