mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 06:14:04 +00:00
get down to 21 phpstan errors
This commit is contained in:
parent
a94227a19c
commit
f98a901aeb
16 changed files with 85 additions and 26 deletions
|
|
@ -6,6 +6,7 @@ namespace Stancl\Tenancy\Controllers;
|
|||
|
||||
use Closure;
|
||||
use Illuminate\Routing\Controller;
|
||||
use Symfony\Component\HttpFoundation\BinaryFileResponse;
|
||||
use Throwable;
|
||||
|
||||
class TenantAssetsController extends Controller // todo rename this to TenantAssetController & update references in docs
|
||||
|
|
@ -17,7 +18,10 @@ class TenantAssetsController extends Controller // todo rename this to TenantAss
|
|||
$this->middleware(static::$tenancyMiddleware);
|
||||
}
|
||||
|
||||
public function asset(string $path = null)
|
||||
/**
|
||||
* @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
|
||||
*/
|
||||
public function asset(string $path = null): BinaryFileResponse
|
||||
{
|
||||
abort_if($path === null, 404);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue