Skip to content

4.14.0

Latest
Compare
Choose a tag to compare
@akrabat akrabat released this 13 Jun 09:37
· 12 commits to 4.x since this release
4.14.0
5943393

What's Changed

  • Do not HTML entity encode in PlainTextErrorRenderer by @akrabat in #3319
  • Only render tip to error log if plain text renderer is used by @akrabat in #3321
  • Add template generics for PSR-11 implementations in PHPStan and Psalm by @limarkxx in #3322
  • Update squizlabs/php_codesniffer requirement from ^3.9 to ^3.10 by @dependabot in #3324
  • Update phpstan/phpstan requirement from ^1.10 to ^1.11 by @dependabot in #3325
  • Update psr/http-factory requirement from ^1.0 to ^1.1 by @dependabot in #3326

Type hinting with template generics

With the introduction of template generics, if you type-hint Slim\App instance variable using /** @var \Slim\App $app */, then you will need to change it to either:

  • /** @var \Slim\App<null> $app */ if you are not using a DI container, or
  • /** @var \Slim\App<\Psr\Container\ContainerInterface> $app */ if you are

You can also type-hint to the concrete instance of the container you are using too. For example, if you are using PHP-DI, then you can use: /** @var \Slim\App<DI\Container> $app */.

New Contributors

Full Changelog: 4.13.0...4.14.0