diff --git a/app/Utils/VendorHtmlEngine.php b/app/Utils/VendorHtmlEngine.php index bd5183bf33f9..00a74a1b2525 100644 --- a/app/Utils/VendorHtmlEngine.php +++ b/app/Utils/VendorHtmlEngine.php @@ -108,7 +108,7 @@ class VendorHtmlEngine { if (! $this->vendor->currency()) { throw new Exception(debug_backtrace()[1]['function'], 1); - exit; + return []; } App::forgetInstance('translator'); diff --git a/phpstan.neon b/phpstan.neon index 8c380f84e481..8bbf3a89f08a 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -2,9 +2,12 @@ includes: - ./vendor/nunomaduro/larastan/extension.neon parameters: + treatPhpDocTypesAsCertain: false ignoreErrors: - '#Call to an undefined method .*badMethod\(\)#' - '#Call to an undefined method Illuminate\Database\Eloquent\Builder::exclude#' + parallel: + maximumNumberOfProcesses: 8 level: 4 paths: - 'app/'