Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix phpstan issues
Browse files Browse the repository at this point in the history
GromNaN committed Nov 23, 2024

Verified

This commit was signed with the committer’s verified signature.
GromNaN Jérôme Tamarelle
1 parent 8d3cc7c commit 95343b1
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion src/Scout/ScoutEngine.php
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion tests/Scout/ScoutIntegrationTest.php
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@

class ScoutIntegrationTest extends TestCase
{
// Replace the User model that is used by the UserFactory.
/** Replace the User model that is used by the UserFactory. */
protected static function getUserModel(): string
{
return SqlUser::class;

0 comments on commit 95343b1

Please sign in to comment.