Download Latest Version 4.15.1 source code.tar.gz (35.5 kB)
Email in envelope

Get an email when there's a new version of Slim

Home / 4.14.0
Name Modified Size InfoDownloads / Week
Parent folder
4.14.0 source code.tar.gz 2024-06-13 34.8 kB
4.14.0 source code.zip 2024-06-13 73.2 kB
README.md 2024-06-13 1.5 kB
Totals: 3 Items   109.5 kB 0

What's Changed

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: https://github.com/slimphp/Slim/compare/4.13.0...4.14.0

Source: README.md, updated 2024-06-13