Skip to content

Commit

Permalink
Typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
akrabat committed Jun 14, 2024
1 parent 39a4567 commit b53ceca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _posts/2024-06-13-slim-4.14.0-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ To inform the static analyzer that we created <tt>Slim\App</tt> with PHP-DI, we

For your codebase, if you type hint <tt>Slim\App</tt> instance variables using <tt>/** @var \Slim\App $app */</tt>, then you will need to change it to either:

* <tt>/** @var \Slim\App<null> $app */</tt> if you are not using a DI container, or
* <tt>/** @var \Slim\App&lt;null&gt; $app */</tt> if you are not using a DI container, or
* <tt>/** @var \Slim\App<\Psr\Container\ContainerInterface> $app */</tt> if you are.

As noted above, you can also type hint to the concrete instance of the container you are using too.

0 comments on commit b53ceca

Please sign in to comment.