mirror of
https://github.com/wallabag/wallabag.git
synced 2025-06-27 16:36:00 +00:00
Add PHPStan bootstrap file to load .env file
This commit is contained in:
parent
efbc8e7959
commit
28224fe543
2 changed files with 9 additions and 0 deletions
|
@ -6,6 +6,8 @@ parameters:
|
|||
paths:
|
||||
- src
|
||||
- tests
|
||||
bootstrapFiles:
|
||||
- tests/phpstan-bootstrap.php
|
||||
|
||||
symfony:
|
||||
container_xml_path: %rootDir%/../../../var/cache/dev/AppKernelDevDebugContainer.xml
|
||||
|
|
7
tests/phpstan-bootstrap.php
Normal file
7
tests/phpstan-bootstrap.php
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
|
||||
use Symfony\Component\Dotenv\Dotenv;
|
||||
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
(new Dotenv())->bootEnv(dirname(__DIR__) . '/.env');
|
Loading…
Add table
Add a link
Reference in a new issue