mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-16 16:17:43 +03:00
Prepare tests for running on PHP 8
This commit is contained in:
+8
-6
@@ -8,9 +8,11 @@ use AspectMock\Kernel;
|
||||
require_once __DIR__ . '/../vendor/autoload.php'; // composer autoload
|
||||
require_once __DIR__ . '/phpstan-bootstrap.php';
|
||||
|
||||
$kernel = Kernel::getInstance();
|
||||
$kernel->init([
|
||||
'debug' => true,
|
||||
'cacheDir' => sys_get_temp_dir(),
|
||||
'includePaths' => [__DIR__ . '/../src']
|
||||
]);
|
||||
if (PHP_MAJOR_VERSION < 8) {
|
||||
$kernel = Kernel::getInstance();
|
||||
$kernel->init([
|
||||
'debug' => true,
|
||||
'cacheDir' => sys_get_temp_dir(),
|
||||
'includePaths' => [__DIR__ . '/../src']
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user