1
0
Fork 0
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:
Yassine Guedidi 2025-02-18 01:30:13 +01:00
parent efbc8e7959
commit 28224fe543
2 changed files with 9 additions and 0 deletions

View file

@ -6,6 +6,8 @@ parameters:
paths:
- src
- tests
bootstrapFiles:
- tests/phpstan-bootstrap.php
symfony:
container_xml_path: %rootDir%/../../../var/cache/dev/AppKernelDevDebugContainer.xml

View file

@ -0,0 +1,7 @@
<?php
use Symfony\Component\Dotenv\Dotenv;
require __DIR__ . '/../vendor/autoload.php';
(new Dotenv())->bootEnv(dirname(__DIR__) . '/.env');