Replies: 1 comment
-
|
FWIW downgrading to Valet 3.x, deleting |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been using this local valet driver to serve images from a remote host when doing local development: https://gist.github.com/mishterk/a8f19eeb514cf77ad333fb67b3c7aeb9#file-localvaletdriver-php
However, it results in an error:
Fatal error: Uncaught Error: Class "WordPressValetDriver" not foundI've tried
use Valet\Drivers\Specific\WordPressValetDriver;to no avail:Fatal error: Uncaught Error: Class 'Valet\Drivers\Specific\WordPressValetDriver' not foundI've also tried
use Valet\Drivers\WordPressValetDriver;to no avail.If I try extending the
BasicValetDriverinstead, I the following error:Fatal error: Declaration of Valet\Drivers\LocalValetDriver::serveStaticFile($staticFilePath, $sitePath, $siteName, $uri) must be compatible with Valet\Drivers\ValetDriver::serveStaticFile(string $staticFilePath, string $sitePath, string $siteName, string $uri): voidWhat can I do to make this driver function again?
This is with
valet 4.0and[email protected]For reference, the entire driver from the linked gist:
Beta Was this translation helpful? Give feedback.
All reactions