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:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user