diff --git a/tests/acceptance/EloquentModelTypes.feature b/tests/acceptance/EloquentModelTypes.feature index 51845a7..cebe928 100644 --- a/tests/acceptance/EloquentModelTypes.feature +++ b/tests/acceptance/EloquentModelTypes.feature @@ -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 +