diff --git a/Config/phpstan.neon b/Config/phpstan.neon index c815ccb..33b52bf 100755 --- a/Config/phpstan.neon +++ b/Config/phpstan.neon @@ -3,6 +3,9 @@ includes: parameters: fileExtensions: - php + scanDirectories: + - ../../Resources/tcpdf + - ../../Resources/PhpOffice reportUnmatchedIgnoredErrors: false inferPrivatePropertyTypeFromConstructor: true checkMissingIterableValueType: false @@ -38,7 +41,6 @@ parameters: - */Markdown/Markdown.php - */Socket/* - */node_modules/* - - */Modules/Shop/Admin/Install/Application/* - */Modules/**/Application/* - */Accounting/* ignoreErrors: diff --git a/Helper/findMissingNullModelTest.php b/Helper/findMissingNullModelTest.php index c42b6bf..f4e3ed4 100755 --- a/Helper/findMissingNullModelTest.php +++ b/Helper/findMissingNullModelTest.php @@ -35,13 +35,13 @@ foreach ($modules as $module) { } if (\stripos($model, '.php') === false) { - throw \Exception('invalid substr'); + throw new Exception('invalid substr'); } $model = \substr($model, 4, -4); // remove Null and .php from string if (empty($model)) { - throw \Exception('invalid substr'); + throw new Exception('invalid substr'); } if (!\is_file(__DIR__ . '/../../Modules/' . $module . '/tests/Models/Null' . $model . 'Test.php')) {