From 320f0242d0b6f6d29fd598dfa34fffdbc1fb997a Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 5 Jul 2023 21:28:15 +1000 Subject: [PATCH] Fixes for test --- app/Export/CSV/BaseExport.php | 2 ++ phpstan.neon | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/Export/CSV/BaseExport.php b/app/Export/CSV/BaseExport.php index 9b606b07c807..9d704574d990 100644 --- a/app/Export/CSV/BaseExport.php +++ b/app/Export/CSV/BaseExport.php @@ -501,6 +501,8 @@ class BaseExport foreach (array_merge($this->input['report_keys'], $this->forced_keys) as $value) { $key = array_search($value, $this->entity_keys); + + $prefix = ''; if(!$key) { $prefix = stripos($value, 'client.') !== false ? ctrans('texts.client') : ctrans('texts.contact'); diff --git a/phpstan.neon b/phpstan.neon index 02983dff19a6..ab6b6936544c 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -2,9 +2,11 @@ includes: - ./vendor/nunomaduro/larastan/extension.neon parameters: - parallel: - processTimeout: 300.0 treatPhpDocTypesAsCertain: false + parallel: + jobSize: 20 + maximumNumberOfProcesses: 2 + processTimeout: 300.0 ignoreErrors: - '#Call to an undefined method .*badMethod\(\)#' - '#Call to an undefined method Illuminate\Database\Eloquent\Builder::exclude#'