diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 1ff9532..ed81fae 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -1,7 +1,7 @@ parameters: ignoreErrors: - - message: "#^Cannot call method searchableAs\\(\\) on mixed\\.$#" + message: "#^Cannot call method searchableAs\\(\\) on Illuminate\\\\Database\\\\Eloquent\\\\Model\\|null\\.$#" count: 2 path: src/Engine.php diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 9ba7ad7..31b021d 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -3,10 +3,10 @@ includes: parameters: level: max - checkMissingIterableValueType: false - checkGenericClassInNonGenericObjectType: false paths: - src ignoreErrors: + - identifier: missingType.iterableValue + - identifier: missingType.generics - '#Parameter .+? of method Illuminate\\Support\\Collection<.+?>::.+?\(\) expects .+? given#' - '#Call to an undefined method Illuminate\\Database\\Eloquent\\Model::(getScoutKey|getScoutModelsByIds|queryScoutModelsByIds|searchableAs|scoutMetadata|pushSoftDeleteMetadata|toSearchableArray)\(\)#'