master
Jean-Christian Paul Denis 2023-03-20 23:48:46 +01:00
parent ff78d530cf
commit f2b1c3f093
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
1 changed files with 2 additions and 2 deletions

View File

@ -282,7 +282,7 @@ class phpstan extends Action
private function writeConf(): bool private function writeConf(): bool
{ {
$full = $this->getSetting('ignored_default') ? '' : 'full.'; $full = $this->getSetting('ignored_default') ? '' : 'full.';
$content = str_replace( $content = str_replace(
[ [
'%LEVEL%', '%LEVEL%',
@ -294,7 +294,7 @@ class phpstan extends Action
$this->run_level, $this->run_level,
(string) path::real($this->module['sroot'], false), (string) path::real($this->module['sroot'], false),
(string) path::real(DC_ROOT, false), (string) path::real(DC_ROOT, false),
(string) path::real( __DIR__ . '/phpstan', false), (string) path::real(__DIR__ . '/phpstan', false),
], ],
(string) file_get_contents(__DIR__ . '/phpstan/phpstan.rules.' . $full . 'conf') (string) file_get_contents(__DIR__ . '/phpstan/phpstan.rules.' . $full . 'conf')
); );