Laravel Valet deprecations when using PHP 8.1 #1159
Replies: 5 comments 6 replies
-
@alexis-riot If you upgrade to the latest version of Valet, you should be be no longer getting any of these deprecations. |
Beta Was this translation helpful? Give feedback.
-
Im seeing the same warnings ~/.composer/composer.json
its resolved illuminate/container to v5.4.36 trying to
removed
|
Beta Was this translation helpful? Give feedback.
-
In the meantime I've figured out this is because Laravel v8 doesn't allows psr/container 2.0 so we'll have to wait until Laravel v9 before these will go away. |
Beta Was this translation helpful? Give feedback.
-
Hello everyone. I was getting these deprecated warnings as well. Managed to solve it by adding a version constraint for php in composer.json, like so: (I only have projects using either 7.4 or 8.1 at the moment.) {
"php": "^7.4|^8.1",
"require": {
"laravel/valet": "^2.17",
"laravel/installer": "^4.1"
}
} and then just |
Beta Was this translation helpful? Give feedback.
-
Hey all, #1181 was merged so hopefully these errors are now resolved. I'm not getting them anymore. |
Beta Was this translation helpful? Give feedback.
-
Hello,
After an upgrade of PHP from 8.0.13 to 8.1, I got a lot of deprecations when using
valet
command.I've run the following commands:
composer global update
valet install
valet use [email protected]
There is an examples of deprecations that I have:
Thanks for support.
Beta Was this translation helpful? Give feedback.
All reactions