diff --git a/README.md b/README.md index 7ecfb763..73398015 100644 --- a/README.md +++ b/README.md @@ -434,23 +434,13 @@ declare(strict_types=1); final class LocalValetDriver extends BasicValetDriver { - /** - * Determine if the driver serves the request. - * - * @param string $sitePath - * @param string $siteName - * @param string $uri - * @return bool - */ - public function serves($sitePath, $siteName, $uri) + public function serves(string $sitePath, string $siteName, string $uri): bool { - return is_dir($sitePath.'/public/wordpress/wp-admin'); + return is_dir($sitePath.'/public/wordpress'); } - /** - * @return false|string - */ - public function isStaticFile(string $sitePath, string $siteName, string $uri) + /** @return false|string */ + public function isStaticFile(string $sitePath, string $siteName, string $uri): { $staticFilePath = $sitePath . '/public' . $uri;