mirror of
https://github.com/laravel/valet.git
synced 2026-02-08 01:10:08 +01:00
Allow null response from frontControllerPath
This commit is contained in:
@@ -48,9 +48,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
|
||||
{
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'GET' && $this->isActualFile($staticPath = $this->getStaticPath($sitePath))) {
|
||||
return $staticPath;
|
||||
|
||||
Reference in New Issue
Block a user