Skip to content

Commit faac980

Browse files
committed
refactor: add return types
1 parent f3bcbfb commit faac980

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

system/Debug/BaseExceptionHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ protected function collectVars(Throwable $exception, int $statusCode): array
8989
*
9090
* @param array|object $trace
9191
*/
92-
protected function maskSensitiveData(&$trace, array $keysToMask, string $path = '')
92+
protected function maskSensitiveData(&$trace, array $keysToMask, string $path = ''): void
9393
{
9494
foreach ($keysToMask as $keyToMask) {
9595
$explode = explode('/', $keyToMask);

system/HTTP/SiteURI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ public function refreshPath()
328328
/**
329329
* Saves our parts from a parse_url() call.
330330
*/
331-
protected function applyParts(array $parts)
331+
protected function applyParts(array $parts): void
332332
{
333333
if (! empty($parts['host'])) {
334334
$this->host = $parts['host'];

system/HotReloader/HotReloader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717
final class HotReloader
1818
{
19-
public function run()
19+
public function run(): void
2020
{
2121
ini_set('zlib.output_compression', 'Off');
2222

system/Router/AutoRouterImproved.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public function __construct(// @phpstan-ignore-line
121121
$this->controller = $this->defaultController;
122122
}
123123

124-
private function createSegments(string $uri)
124+
private function createSegments(string $uri): array
125125
{
126126
$segments = explode('/', $uri);
127127
$segments = array_filter($segments, static fn ($segment) => $segment !== '');

0 commit comments

Comments
 (0)