Skip to content

Commit

Permalink
Fix phpstan issues
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed Nov 23, 2024
1 parent 8d3cc7c commit 95343b1
Show file tree
Hide file tree
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
Expand Up @@ -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
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/Scout/ScoutIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 95343b1

Please sign in to comment.