Adds annotation options bool $digits
and string $pattern
:
/**
* @Bind("file", digits=true)
* @Bind("issue", pattern="[A-Z]{3}-\d+")
*/
to make
$router->model('file', 'App\Models\File');
$router->pattern('file', '\d+');
$router->model('issue', 'App\Models\Issue');
$router->pattern('issue', '[A-Z]{3}-\d+');
Instead of specifying individual classes. Because scanEverything
is way too slow.
Use ReturnTypeWillChange
instead of return types, because mixed
doesn't exist before php 8.0 and apparently annotations supports ^7.3
.
:alembic: Using this package? If you would like to help test these changes or believe them to be compatible, you may update your project to reference this branch.
To do so, temporarily add Shift's fork to the repositories
property of your composer.json
:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/laravel-shift/html.git"
}
]
}
Then update your dependency constraint to reference this branch:
{
"require": {
"laravelcollective/html": "dev-l10-compatibility",
}
}
Finally, run: composer update
:warning: The latest version of Laravel has a dependency for phpunit/phpunit
of ^9.5.10
. If you would like to also upgrade your tests, you may run the PHPUnit 9 Shift for free.
This is an automated pull request from Shift to update your package code and dependencies to be compatible with Laravel 9.x.
Before merging, you need to:
l10-compatibility
branchIf you do find an issue, please report it by commenting on this PR to help improve future automation.