Feature: Container The Laravel container can be resolved, and it has types Background: Given I have the following config """ """ Scenario: Application interface does not error Given I have the following code """ app->foo("a", "b"); } } """ When I run Psalm Then I see these errors | Type | Message | | UndefinedInterfaceMethod | Method Illuminate\Contracts\Foundation\Application::foo does not exist | Scenario: the container resolves correct types Given I have the following code """ make(\Illuminate\Routing\Redirector::class); } } """ When I run Psalm Then I see no errors Scenario: the application interface supports array access for container Given I have the following code """ make(\Illuminate\Routing\Redirector::class); } function testMakeWith(): \Illuminate\Routing\Redirector { return app()->makeWith(\Illuminate\Routing\Redirector::class); } """ When I run Psalm Then I see no errors Scenario: container can resolve aliases Given I have the following code """ make('log'); } function testMakeWith(): \Illuminate\Log\LogManager { return app()->makeWith('log'); } """ When I run Psalm Then I see no errors Scenario: container cannot resolve unknown aliases Given I have the following code """ makeWith('logg'); } """ When I run Psalm Then I see exit code 2