Replies: 1 comment 1 reply
-
Probably a v4 file (with different syntax) that didn't get removed/overwritten with the v3 downgrade. I think you can probably fix it by deleting the file using this shell command: rm ~/.config/valet/Drivers/SampleValetDriver.php That particular file is only an example and serves no functional purpose unless customized, so is safe to delete. Subsequent re-installs of Valet will probably recreate the file anyway. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey!! I upgraded to Valet 4.0 and was experiencing horrible lag time for some odd reason. I tried to downgrade to 3.2.1. I had to remove global composer vendor file and lock file but eventually got there. Now I'm getting this fatal error on all the sites:
Fatal error: Declaration of Valet\Drivers\Custom\SampleValetDriver::serves(string $sitePath, string $siteName, string $uri): bool must be compatible with Valet\Drivers\ValetDriver::serves($sitePath, $siteName, $uri) in /Users/amanda/.config/valet/Drivers/SampleValetDriver.php on line 12
I tried unlinking and re-linking one site and still get the same error. What on earth can cause this? They are all using PHP 8.1
Help?
Beta Was this translation helpful? Give feedback.
All reactions