From 997c3e61447c3a05c219e4fc62a50e707fc0a55b Mon Sep 17 00:00:00 2001 From: fiachra mcdermott Date: Sun, 4 Jul 2021 14:04:51 -0400 Subject: [PATCH] test: ensure find or fail works correctly --- tests/acceptance/EloquentModelTypes.feature | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 +