diff --git a/_posts/2024-06-13-slim-4.14.0-release.md b/_posts/2024-06-13-slim-4.14.0-release.md index ee920cf1..685a3786 100644 --- a/_posts/2024-06-13-slim-4.14.0-release.md +++ b/_posts/2024-06-13-slim-4.14.0-release.md @@ -19,9 +19,9 @@ $container = $this->app->getContainer(); $entries = $container->getKnownEntryNames(); ``` -[PHPStan](https://phpstan.org/) has no way of knowing that $container is an instance of DI\Container which has a getKnownEntryNames() method and so will complain. +[Psalm](https://psalm.dev) or [PHPStan](https://phpstan.org/) have no way of knowing that $container is an instance of DI\Container which has a getKnownEntryNames() method and so will complain. -To inform PHPStan that we created Slim\App with PHP-DI, we change: /** @var \Slim\App $app */ to /** @var \Slim\App $app */ and now PHPStan knows that getKnownEntryNames() is a valid method call on $container. +To inform the static analyzer that we created Slim\App with PHP-DI, we change: /** @var \Slim\App $app */ to /** @var \Slim\App $app */ and now PHPStan knows that getKnownEntryNames() is a valid method call on $container. ### Update your type hints