1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Optimize phpstan

This commit is contained in:
David Bomba 2023-06-08 17:31:33 +10:00
parent 11de4b241d
commit dad8aea5b0
2 changed files with 4 additions and 1 deletions

View File

@ -108,7 +108,7 @@ class VendorHtmlEngine
{
if (! $this->vendor->currency()) {
throw new Exception(debug_backtrace()[1]['function'], 1);
exit;
return [];
}
App::forgetInstance('translator');

View File

@ -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/'