diff --git a/src/Stubs/common/FileLocator.stubphp b/src/Stubs/common/FileLocator.stubphp new file mode 100644 index 0000000..0a1ec76 --- /dev/null +++ b/src/Stubs/common/FileLocator.stubphp @@ -0,0 +1,13 @@ +locate(__FILE__); + } + """ + When I run Psalm + Then I see no errors + + Scenario: FileLocator locate method return type should be `array` when third argument is false + Given I have the following code + """ + locate(__FILE__, null, false); + } + """ + When I run Psalm + Then I see no errors