-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Laravel 11.x Shift #8
Conversation
Accessing Faker properties was deprecated in Faker 1.14.
Laravel 8 adopts the tuple syntax for controller actions. Since the old options array is incompatible with this syntax, Shift converted them to use modern, fluent methods.
From the [PHPUnit 8 release notes][1], the `TestCase` methods below now declare a `void` return type: - `setUpBeforeClass()` - `setUp()` - `assertPreConditions()` - `assertPostConditions()` - `tearDown()` - `tearDownAfterClass()` - `onNotSuccessfulTest()` [1]: https://phpunit.de/announcements/phpunit-8.html
ℹ️ To slim down the Laravel installation, Laravel 11 no longer has most of the core files previously included in the default Laravel application. While you are welcome to publish and customize these files, they are no longer required. Shift takes an iterative approach to removing core files which are not customized or where its customizations may be done elsewhere in a modern Laravel 11 application. As such, you may see some commits removing files and others re-registering your customizations. |
|
ℹ️ Laravel 11 no longer requires you to maintain the default configuration files. Your configuration now merges with framework defaults. Shift streamlined your configuration files by removing options that matched the Laravel defaults and preserving your true customizations. These are values which are not changeable through If you wish to keep the full set of configuration files, Shift recommends running |
ℹ️ Shift detected customized options within your configuration files which may be set with an BCRYPT_ROUNDS=10
CACHE_STORE=file
DB_CONNECTION=mysql
LOG_STACK=single,flare,bugsnag
MAIL_MAILER=smtp
QUEUE_CONNECTION=sync
REDIS_QUEUE_RETRY_AFTER=600
SESSION_DRIVER=file Note: some of these may simply be values which changed between Laravel 10 and Laravel 11. You may ignore any |
Shift automated this change for your committed files, but you should review any additional locations where your environment is configured and update to the new variable names. |
❌ The |
Shift detected policies registered with the |
ℹ️ The base Shift detected your base controller did not have any public methods, so it was safe to mark as |
|
Shift detected potential uses of the |
ℹ️ The Shift automated this change by converting these columns to their underlying types and chaining the |
php artisan vendor:publish --tag=sanctum-migrations |
ℹ️ Laravel 11 now updates the timestamp when publishing vendor migrations. This may cause problems in existing applications when these migrations were previously published and ran with their default timestamp. To preserve the original behavior, Shift disabled this feature in your |
ℹ️ The following files previously included in a Laravel application appeared to be customized and were not removed. Shift encourages you to review your customizations to see if they are still needed or may be done elsewhere in a modern Laravel application. Removing these files will keep your application modern and make future maintenance easier.
|
|
|
ℹ️ All of the underlying Symfony components used by Laravel have been upgraded to Symfony 7.0. Shift detected references to Symfony classes within your application. These are most likely type hints and can safely be ignored. If you are using Symfony classes directly or experience issues relating to Symfony, you should review the Symfony change log for any additional changes. |
|
|
|
🎉 Congratulations, you're now running the latest version of Laravel! Next, you may optionally run the following Shifts to ensure your application is fully upgraded, adopts the latest Laravel conventions, and easier to maintain in the future:
You may also use the Shift Workbench to automate common tasks for maintaining your Laravel application. |
❌ PHP syntax errors were detected after running your Shift. Often these are simply differences between the PHP version on the Shift server (8.2) and your project. Occasionally they are misplaced lines or duplicate import statements. You may quickly check the PHP syntax locally by running
|
This pull request includes the changes for upgrading to Laravel 11.x. Feel free to commit any additional changes to the
shift-119575
branch.Before merging, you need to:
shift-119575
branchcomposer update
(if the scripts fail, try with--no-scripts
)If you need help with your upgrade, check out the Human Shifts.