Skip to content

Releases: slimphp/Slim

4.14.0

13 Jun 09:37
4.14.0
5943393
Compare
Choose a tag to compare

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

4.13.0

03 Mar 21:35
4.13.0
038fd57
Compare
Choose a tag to compare

4.12.0

23 Jul 04:56
4.12.0
e9e99c2
Compare
Choose a tag to compare

Total issues resolved: 18

3.12.5

23 Jul 04:49
3.12.5
565632b
Compare
Choose a tag to compare

Total issues resolved: 1

4.11.0

06 Nov 16:37
4.11.0
b0f4ca3
Compare
Choose a tag to compare

Total issues resolved: 27

3.12.4

03 Aug 02:50
3.12.4
ce3cb65
Compare
Choose a tag to compare

4.10.0

14 Mar 14:20
4.10.0
0dfc7d2
Compare
Choose a tag to compare

4.9.0

05 Oct 03:01
4.9.0
44d3c9c
Compare
Choose a tag to compare

4.8.1

29 Jun 20:11
4.8.1
c8934c3
Compare
Choose a tag to compare
fix constant

4.8.0

20 May 00:31
4.8.0
c9bdc9e
Compare
Choose a tag to compare