fix is_new issue with enrollment fixes
This commit is contained in:
@@ -7,6 +7,26 @@ if (! getenv('CI_ENVIRONMENT')) {
|
||||
$_SERVER['CI_ENVIRONMENT'] = 'testing';
|
||||
}
|
||||
|
||||
// Minimal Locale polyfill when the intl extension is unavailable in the test PHP build.
|
||||
if (! class_exists(\Locale::class, false)) {
|
||||
class Locale
|
||||
{
|
||||
private static string $default = 'en';
|
||||
|
||||
public static function setDefault(string $locale): bool
|
||||
{
|
||||
self::$default = $locale;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public static function getDefault(): string
|
||||
{
|
||||
return self::$default;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$writablePath = realpath(__DIR__ . '/../..') . DIRECTORY_SEPARATOR . 'writable';
|
||||
$runtimeDirectories = [
|
||||
$writablePath . DIRECTORY_SEPARATOR . 'cache',
|
||||
|
||||
Reference in New Issue
Block a user