Skip to content

Commit ec6835d

Browse files
committed
fix: declare param/return types
1 parent 23539c9 commit ec6835d

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

system/Debug/BaseExceptionHandler.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,8 @@ protected function collectVars(Throwable $exception, int $statusCode): array
8686

8787
/**
8888
* Mask sensitive data in the trace.
89-
*
90-
* @param array|object $trace
9189
*/
92-
protected function maskSensitiveData($trace, array $keysToMask, string $path = '')
90+
protected function maskSensitiveData(array $trace, array $keysToMask, string $path = ''): array
9391
{
9492
foreach ($trace as $i => $line) {
9593
$trace[$i]['args'] = $this->maskData($line['args'], $keysToMask);

system/Debug/Exceptions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,9 @@ protected function collectVars(Throwable $exception, int $statusCode): array
334334
/**
335335
* Mask sensitive data in the trace.
336336
*
337-
* @param array|object $trace
337+
* @param array $trace
338338
*
339-
* @return array|object
339+
* @return array
340340
*
341341
* @deprecated 4.4.0 No longer used. Moved to BaseExceptionHandler.
342342
*/

0 commit comments

Comments
 (0)