1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-07 17:10:05 +01:00

Allow null response from frontControllerPath

This commit is contained in:
Matt Stauffer
2022-12-22 13:26:02 -05:00
parent f2a62f51c6
commit 4c67413e7a
19 changed files with 43 additions and 36 deletions

View File

@@ -42,9 +42,9 @@ public function isStaticFile(string $sitePath, string $siteName, string $uri): s
* @param string $sitePath
* @param string $siteName
* @param string $uri
* @return string
* @return string|null
*/
public function frontControllerPath(string $sitePath, string $siteName, string $uri): string
public function frontControllerPath(string $sitePath, string $siteName, string $uri): ?string
{
$_SERVER['DOCUMENT_ROOT'] = $sitePath.'/webroot';
$_SERVER['SCRIPT_FILENAME'] = $sitePath.'/webroot/index.php';