feat(drupal): re-add phpstan.neon.dist

This commit is contained in:
Oliver Davies 2023-10-06 15:26:10 +01:00
parent af24a4b4fa
commit f911d52573
2 changed files with 17 additions and 0 deletions

View file

@ -66,6 +66,7 @@ final class CreateListOfFilesToGenerate
new TemplateFile(data: 'drupal/Dockerfile', name: 'Dockerfile'), new TemplateFile(data: 'drupal/Dockerfile', name: 'Dockerfile'),
new TemplateFile(data: 'drupal/docker-compose.yaml', name: 'docker-compose.yaml'), new TemplateFile(data: 'drupal/docker-compose.yaml', name: 'docker-compose.yaml'),
new TemplateFile(data: 'drupal/justfile', name: 'justfile'), new TemplateFile(data: 'drupal/justfile', name: 'justfile'),
new TemplateFile(data: 'drupal/phpstan.neon.dist', name: 'phpstan.neon.dist'),
]); ]);
$extraDatabases = Arr::get($configurationData, 'database.extra_databases', []); $extraDatabases = Arr::get($configurationData, 'database.extra_databases', []);

View file

@ -0,0 +1,16 @@
# {{ managedText | raw }}
parameters:
level: {{ php.phpstan.level }}
excludePaths:
- *Test.php
- *TestBase.php
paths:
{% for path in php.phpstan.paths -%}
- {{ path }}
{%- endfor %}
{% if php.phpstan.baseline %}
includes:
- phpstan-baseline.neon
{% endif %}