mirror of
https://github.com/danog/psalm-plugin-laravel.git
synced 2024-11-26 12:24:50 +01:00
Fix tests
This commit is contained in:
parent
325af8daa9
commit
288881551f
@ -264,7 +264,7 @@ Feature: Eloquent Builder types
|
||||
return $builder->whereDate('created_at', '>', 1);
|
||||
}
|
||||
"""
|
||||
And I have Psalm older than "4.99.0" (because of "changed issue message")
|
||||
And I have Psalm older than "4.99.0" (because of "changed issue type")
|
||||
When I run Psalm
|
||||
Then I see these errors
|
||||
| Type | Message |
|
||||
@ -281,11 +281,11 @@ Feature: Eloquent Builder types
|
||||
return $builder->whereDate('created_at', '>', 1);
|
||||
}
|
||||
"""
|
||||
And I have Psalm newer than "4.99.0" (because of "changed issue message")
|
||||
And I have Psalm newer than "4.99.0" (because of "changed issue type")
|
||||
When I run Psalm
|
||||
Then I see these errors
|
||||
| Type | Message |
|
||||
| InvalidScalarArgument | Argument 3 of Illuminate\Database\Eloquent\Builder::whereDate expects DateTimeInterface\|null\|string, but 1 provided |
|
||||
| InvalidArgument | Argument 3 of Illuminate\Database\Eloquent\Builder::whereDate expects DateTimeInterface\|null\|string, but 1 provided |
|
||||
|
||||
Scenario: can call count on the builder instance
|
||||
Given I have the following code
|
||||
|
Loading…
Reference in New Issue
Block a user