mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Improved run-api-tests.sh script to make it compatible with sh
This commit is contained in:
@@ -17,8 +17,9 @@ use function Shlinkio\Shlink\Config\swooleIsInstalled;
|
||||
|
||||
use const PHP_SAPI;
|
||||
|
||||
$enableSwoole = PHP_SAPI === 'cli' && swooleIsInstalled();
|
||||
$isTestEnv = env('APP_ENV') === 'test';
|
||||
$isRR = env('RR_MODE') !== null;
|
||||
$enableSwoole = PHP_SAPI === 'cli' && ! $isRR && swooleIsInstalled();
|
||||
|
||||
return (new ConfigAggregator\ConfigAggregator([
|
||||
! $isTestEnv
|
||||
|
||||
Reference in New Issue
Block a user