From bfad7ed83624d6627b5d9f366df28bd39d459660 Mon Sep 17 00:00:00 2001 From: Ethan Clevenger Date: Wed, 22 Mar 2023 11:06:17 -0700 Subject: [PATCH] Correct function signature. Tests pass locally. --- cli/Valet/Drivers/Specific/BedrockValetDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/Valet/Drivers/Specific/BedrockValetDriver.php b/cli/Valet/Drivers/Specific/BedrockValetDriver.php index c0a88bb..1c4579d 100644 --- a/cli/Valet/Drivers/Specific/BedrockValetDriver.php +++ b/cli/Valet/Drivers/Specific/BedrockValetDriver.php @@ -11,7 +11,7 @@ class BedrockValetDriver extends BasicValetDriver */ public function serves(string $sitePath, string $siteName, string $uri): bool { - return $this->composerRequires('roots/bedrock-autoloader') || + return $this->composerRequires($sitePath, 'roots/bedrock-autoloader') || file_exists($sitePath.'/web/app/mu-plugins/bedrock-autoloader.php') || (is_dir($sitePath.'/web/app/') && file_exists($sitePath.'/web/wp-config.php') &&