mirror of
https://github.com/danog/psalm-plugin-laravel.git
synced 2024-11-30 04:39:01 +01:00
test: ensure find or fail works correctly
This commit is contained in:
parent
fbf40a7f19
commit
997c3e6144
@ -36,3 +36,16 @@ Feature: Eloquent Relation Types
|
||||
When I run Psalm
|
||||
Then I see no errors
|
||||
|
||||
Scenario: find or fail support
|
||||
Given I have the following code
|
||||
"""
|
||||
|
||||
function test(): User
|
||||
{
|
||||
return User::findOrFail(1);
|
||||
}
|
||||
|
||||
"""
|
||||
When I run Psalm
|
||||
Then I see no errors
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user