Slim 4.6.0 released
We are excited to announce the Slim 4.6.0 release. Please direct all your feedback for this release to the Slim 4 Release Feedback Thread. The new docs are located here.
Changelog
4.6.0 - 2020-11-15
Fixed
- 2942: Fix PHPdoc for error handlers in ErrorMiddleware thanks to @TiMESPLiNTER
- 2944: Remove unused function in ErrorHandler thanks to @l0gicgate
- 2960: Fix phpstan 0.12 errors thanks to @adriansuter
- 2982: Removing cloning statements in tests thanks to @l0gicgate
- 3017: Fix request creator factory test thanks to @pawel-slowik
- 3022: Ensure RouteParser Always Present After Routing thanks to @l0gicgate
Added
- 2949: Add the support in composer.json thanks to @ddrv
- 2958: Strict empty string content type checking in BodyParsingMiddleware::getMediaType thanks to @Ayesh
- 2997: Add hints to methods thanks to @evgsavosin - 3000: Fix route controller test thanks to @pawel-slowik
- 3001: Add missing
$strategy
parameter in a Route test thanks to @pawel-slowik
Optimizations
- 2951: Minor optimizations in if() blocks thanks to @Ayesh
- 2959: Micro optimization: Declare closures in BodyParsingMiddleware as static thanks to @Ayesh
- 2978: Split the routing results to its own function. thanks to @dlundgren
Dependencies Updated
- 2953: Update nyholm/psr7-server requirement from ^0.4.1 thanks to @dependabot-preview[bot]
- 2954: Update laminas/laminas-diactoros requirement from ^2.1 to ^2.3 thanks to @dependabot-preview[bot]
- 2955: Update guzzlehttp/psr7 requirement from ^1.5 to ^1.6 thanks to @dependabot-preview[bot]
- 2956: Update slim/psr7 requirement from ^1.0 to ^1.1 thanks to @dependabot-preview[bot]
- 2957: Update nyholm/psr7 requirement from ^1.1 to ^1.2 thanks to @dependabot-preview[bot]
- 2963: Update phpstan/phpstan requirement from ^0.12.23 to ^0.12.25 thanks to @dependabot-preview[bot]
- 2965: Update adriansuter/php-autoload-override requirement from ^1.0 to ^1.1 thanks to @dependabot-preview[bot]
- 2967: Update nyholm/psr7 requirement from ^1.2 to ^1.3 thanks to @dependabot-preview[bot]
- 2969: Update nyholm/psr7-server requirement from ^0.4.1 to ^1.0.0 thanks to @dependabot-preview[bot]
- 2970: Update phpstan/phpstan requirement from ^0.12.25 to ^0.12.26 thanks to @dependabot-preview[bot]
- 2971: Update phpstan/phpstan requirement from ^0.12.26 to ^0.12.27 thanks to @dependabot-preview[bot]
- 2972: Update phpstan/phpstan requirement from ^0.12.27 to ^0.12.28 thanks to @dependabot-preview[bot]
- 2973: Update phpstan/phpstan requirement from ^0.12.28 to ^0.12.29 thanks to @dependabot-preview[bot]
- 2975: Update phpstan/phpstan requirement from ^0.12.29 to ^0.12.30 thanks to @dependabot-preview[bot]
- 2976: Update phpstan/phpstan requirement from ^0.12.30 to ^0.12.31 thanks to @dependabot-preview[bot]
- 2980: Update phpstan/phpstan requirement from ^0.12.31 to ^0.12.32 thanks to @dependabot-preview[bot]
- 2981: Update phpspec/prophecy requirement from ^1.10 to ^1.11 thanks to @dependabot-preview[bot]
- 2986: Update phpstan/phpstan requirement from ^0.12.32 to ^0.12.33 thanks to @dependabot-preview[bot]
- 2990: Update phpstan/phpstan requirement from ^0.12.33 to ^0.12.34 thanks to @dependabot-preview[bot]
- 2991: Update phpstan/phpstan requirement from ^0.12.34 to ^0.12.35 thanks to @dependabot-preview[bot]
- 2993: Update phpstan/phpstan requirement from ^0.12.35 to ^0.12.36 thanks to @dependabot-preview[bot]
- 2995: Update phpstan/phpstan requirement from ^0.12.36 to ^0.12.37 thanks to @dependabot-preview[bot]
- 3010: Update guzzlehttp/psr7 requirement from ^1.6 to ^1.7 thanks to @dependabot-preview[bot]
- 3011: Update phpspec/prophecy requirement from ^1.11 to ^1.12 thanks to @dependabot-preview[bot]
- 3012: Update slim/http requirement from ^1.0 to ^1.1 thanks to @dependabot-preview[bot]
- 3013: Update slim/psr7 requirement from ^1.1 to ^1.2 thanks to @dependabot-preview[bot]
- 3014: Update laminas/laminas-diactoros requirement from ^2.3 to ^2.4 thanks to @dependabot-preview[bot]
- 3018: Update phpstan/phpstan requirement from ^0.12.37 to ^0.12.54 thanks to @dependabot-preview[bot]