From 1b39753f0d537d6383e8b070a86116dfe2311781 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Fri, 22 Nov 2024 23:33:31 +0100 Subject: [PATCH] Fix phpstan issues --- phpstan-baseline.neon | 5 +++++ src/Scout/ScoutEngine.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 7b34210ad..737e31f17 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -24,3 +24,8 @@ parameters: message: "#^Method Illuminate\\\\Database\\\\Schema\\\\Blueprint\\:\\:create\\(\\) invoked with 1 parameter, 0 required\\.$#" count: 1 path: src/Schema/Builder.php + + - + message: "#^Call to an undefined method Illuminate\\\\Support\\\\HigherOrderCollectionProxy\\<\\(int\\|string\\), Illuminate\\\\Database\\\\Eloquent\\\\Model\\>\\:\\:pushSoftDeleteMetadata\\(\\)\\.$#" + count: 1 + path: src/Scout/ScoutEngine.php diff --git a/src/Scout/ScoutEngine.php b/src/Scout/ScoutEngine.php index 14723d4f7..36b3948a3 100644 --- a/src/Scout/ScoutEngine.php +++ b/src/Scout/ScoutEngine.php @@ -370,7 +370,7 @@ public function lazyMap(Builder $builder, $results, $model): LazyCollection * Accepted options: * - wait: bool, default true. Wait for the index to be created. * - * @param string> $name Collection name + * @param string $name Collection name * @param array{wait?:bool} $options */ public function createIndex($name, array $options = []): void