Skip to content

Commit

Permalink
chore: return types
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 committed Sep 14, 2023
1 parent 0a89c3b commit 46dbbc3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions framework/core/src/Foundation/Concerns/InteractsWithLaravel.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function hasDebugModeEnabled(): bool
/**
* @deprecated Not actually used/has no meaning in Flarum.
*/
public function maintenanceMode()
public function maintenanceMode() // @phpstan-ignore-line
{
// TODO: Implement maintenanceMode() method.
return null;
Expand All @@ -152,28 +152,28 @@ public function isDownForMaintenance(): bool
/**
* @deprecated Not actually used/has no meaning in Flarum.
*/
public function registerConfiguredProviders()
public function registerConfiguredProviders(): void
{
//
}

/**
* @deprecated Not actually used/has no meaning in Flarum.
*/
public function registerDeferredProvider($provider, $service = null)
public function registerDeferredProvider($provider, $service = null): void
{
//
}

/**
* @deprecated Not actually used/has no meaning in Flarum.
*/
public function bootstrapWith(array $bootstrappers)
public function bootstrapWith(array $bootstrappers): void
{
//
}

public function getLocale()
public function getLocale(): string
{
return $this->make(LocaleManager::class)->getLocale();
}
Expand All @@ -193,15 +193,15 @@ public function getProviders($provider): array
/**
* @deprecated Not actually used/has no meaning in Flarum.
*/
public function hasBeenBootstrapped()
public function hasBeenBootstrapped(): bool
{
//
return true;
}

/**
* @deprecated Not actually used/has no meaning in Flarum.
*/
public function loadDeferredProviders()
public function loadDeferredProviders(): void
{
//
}
Expand All @@ -214,9 +214,9 @@ public function setLocale($locale): void
/**
* @deprecated Not actually used/has no meaning in Flarum.
*/
public function shouldSkipMiddleware()
public function shouldSkipMiddleware(): bool
{
//
return false;
}

public function joinPaths($basePath, $path = ''): string
Expand Down
2 changes: 1 addition & 1 deletion framework/core/src/Foundation/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function offsetUnset($offset): void
throw new RuntimeException('The Config is immutable');
}

public function environment()
public function environment(): string
{
return $this->data['env'] ?? 'production';
}
Expand Down

0 comments on commit 46dbbc3

Please sign in to comment.