Skip to content

Commit

Permalink
fix: phpstan errors
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 committed Sep 14, 2023
1 parent 46dbbc3 commit 6538a08
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function runningInConsole(): bool

public function runningUnitTests(): bool
{
return $this->bound('env') && $this['env'] === 'testing';
return $this->bound('env') && $this->environment('testing');
}

public function hasDebugModeEnabled(): bool
Expand All @@ -134,10 +134,9 @@ public function hasDebugModeEnabled(): bool
/**
* @deprecated Not actually used/has no meaning in Flarum.
*/
public function maintenanceMode() // @phpstan-ignore-line
public function maintenanceMode()
{
// TODO: Implement maintenanceMode() method.
return null;
return null; // @phpstan-ignore-line
}

/**
Expand Down Expand Up @@ -219,7 +218,7 @@ public function shouldSkipMiddleware(): bool
return false;
}

public function joinPaths($basePath, $path = ''): string
public function joinPaths(string $basePath, string $path = ''): string
{
return $basePath.($path != '' ? DIRECTORY_SEPARATOR.ltrim($path, DIRECTORY_SEPARATOR) : '');
}
Expand Down

0 comments on commit 6538a08

Please sign in to comment.