1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 12:54:05 +00:00

fix phpstan errors

This commit is contained in:
Samuel Štancl 2024-02-10 23:55:56 +01:00
parent 2eda22772c
commit 56a6f25dac
2 changed files with 6 additions and 1 deletions

View file

@ -57,7 +57,8 @@ class TenantAssetController implements HasMiddleware // todo@docs this was renam
$this->abortIf(! str($attemptedPath)->startsWith($allowedRoot), 'Accessing a file outside the storage root');
}
protected function abortIf($condition, $exceptionMessage): void
/** @return void|never */
protected function abortIf(bool $condition, string $exceptionMessage = ''): void
{
if ($condition) {
if (app()->runningUnitTests()) {