Skip to content

Commit 7d0e766

Browse files
authored
Merge pull request #21 from 21TORR/fix-phpstan-config
Fix PHPStan config [req #20]
2 parents 77245f5 + 57d9e06 commit 7d0e766

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* (feature) Write back the package type, if none was set.
77
* (improvement) Add option to not automatically run `composer update` after Janus finished.
88
* (feature) Add composer plugin to run composer automatically.
9+
* (bug) Update config to fix bug in PHPStan config reader.
910

1011

1112
1.5.1

phpstan/symfony.neon

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@ parameters:
1515
identifier: return.type
1616
path: %currentWorkingDirectory%/src/Storyblok/Component/*Story.php
1717

18+
# If you're using PHP config files for Symfony 5.3+, you also need this for auto-loading of `Symfony\Config`
1819
scanDirectories:
19-
- %currentWorkingDirectory%/var/cache/dev/Symfony/Config (?)
20+
- %currentWorkingDirectory%/var/cache/dev/Symfony/Config
2021

22+
# If you're using PHP config files (including the ones under packages/*.php) for Symfony 5.3+,
23+
# you need this to load the helper functions (i.e. service(), env()):
2124
scanFiles:
2225
- %currentWorkingDirectory%/vendor/symfony/dependency-injection/Loader/Configurator/ContainerConfigurator.php

0 commit comments

Comments
 (0)