-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan-bootstrap.php
40 lines (33 loc) · 1.25 KB
/
phpstan-bootstrap.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
declare(strict_types = 1);
use PHP_CodeSniffer\Config;
define('APPLICATION_ROOT_DIR', __DIR__);
define('APPLICATION_VENDOR_DIR', APPLICATION_ROOT_DIR . '/vendor');
define('APPLICATION_SOURCE_DIR', APPLICATION_ROOT_DIR . '/src');
define('APPLICATION', '');
define('APPLICATION_ENV', '');
define('APPLICATION_STORE', '');
define('APPLICATION_CODE_BUCKET', '');
//require_once(__DIR__ . '/src/Generated/Client/Ide/AutoCompletion.php');
//require_once(__DIR__ . '/src/Generated/Service/Ide/AutoCompletion.php');
//require_once(__DIR__ . '/src/Generated/Zed/Ide/AutoCompletion.php');
$codeceptionShimFilePath = __DIR__ . '/vendor/codeception/codeception/shim.php';
if (file_exists($codeceptionShimFilePath)) {
require_once($codeceptionShimFilePath);
}
$manualAutoload = APPLICATION_VENDOR_DIR . '/squizlabs/php_codesniffer/autoload.php';
if (!class_exists(Config::class) && file_exists($manualAutoload)) {
require $manualAutoload;
}
// Shim to not throw "Function opcache_invalidate not found" error when opcache is not enabled
if (!function_exists('opcache_invalidate')) {
/**
* @param string $script
* @param bool $force
*
* @return void
*/
function opcache_invalidate(string $script, bool $force = false): void
{
}
}