Upgrade dependencies #22
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Dependency Upgrades
This PR upgrades the major version of several dependencies
mindplay/middleman
- 3.x → 4.x - No breaking changes, required changing two instances ofdispatch()
to the PSR-complianthandle()
(see the upgrade guide).laminas/laminas-diactoros
- 2.x → 3.x - No breaking changes (see the upgrade guide).psr/container
- 1.x → 2.x - No breaking changespsr/http-message
- 1.x → 2.x - No breaking changesphp-di/php-di
- 6.x → 7.x - Required upstream by Lumberjack, no breaking changes (required a change to the container creation in tests - see upgrade guide).Breaking Changes
SomeController::staticMethod(...)
→SomeController::class, 'staticMethod']
Callable
which no longer reports it's name tois_callable
(all it returns is 'Closure'). I'm not sure why this was working in PHP 8.1-3 but this is now in-line with Laravel's routing.Note on testing
Two tests were modified regarding middleware dispatching. This is to reflect Middleman removing
dispatch
in favour of the PSR compatiblehandle
method.