From 8f2cb894ce2cfbc9a86be0a423fe149fd6cd92b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Tue, 21 Jan 2025 14:35:00 +0100 Subject: [PATCH] phpstan fixes for spatie invader --- phpstan.neon | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/phpstan.neon b/phpstan.neon index 984f5d2c..2c6e3d69 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,6 +1,5 @@ includes: - ./vendor/larastan/larastan/extension.neon - - ./vendor/spatie/invade/phpstan-extension.neon parameters: paths: @@ -16,6 +15,12 @@ parameters: ignoreErrors: - identifier: trait.unused - identifier: missingType.iterableValue + - + message: '#Spatie\\Invade\\Invader#' + identifier: method.notFound + - + message: '#Spatie\\Invade\\Invader#' + identifier: property.notFound - '#FFI#' - '#Return type(.*?) of method Stancl\\Tenancy\\Database\\Models\\Tenant\:\:newCollection\(\) should be compatible with return type#' - '#Method Stancl\\Tenancy\\Database\\Models\\Tenant\:\:newCollection\(\) should return#'