Skip to content

Commit 2122069

Browse files
committed
Fix: Resolving conflict and Changed the return type with phpstan.
1 parent a8e00b8 commit 2122069

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

system/Debug/Exceptions.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ public function __construct(ExceptionsConfig $config, $request, ResponseInterfac
100100
* @codeCoverageIgnore
101101
*
102102
* @return void
103+
* @phpstan-return never|void
103104
*/
104105
public function initialize()
105106
{
@@ -116,6 +117,7 @@ public function initialize()
116117
* @codeCoverageIgnore
117118
*
118119
* @return void
120+
* @phpstan-return never|void
119121
*/
120122
public function exceptionHandler(Throwable $exception)
121123
{
@@ -195,6 +197,7 @@ public function errorHandler(int $severity, string $message, ?string $file = nul
195197
* @codeCoverageIgnore
196198
*
197199
* @return void
200+
* @phpstan-return never|void
198201
*/
199202
public function shutdownHandler()
200203
{
@@ -251,6 +254,7 @@ protected function determineView(Throwable $exception, string $templatePath): st
251254
* Given an exception and status code will display the error to the client.
252255
*
253256
* @return void
257+
* @phpstan-return never|void
254258
*/
255259
protected function render(Throwable $exception, int $statusCode)
256260
{

system/Debug/Timer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public function has(string $name): bool
132132
* Returns its return value if any.
133133
*
134134
* @param string $name The name of the timer
135-
* @phpstan-param callable():mixed $callable callable to be executed
135+
* @phpstan-param callable(): mixed $callable callable to be executed
136136
*
137137
* @return array|bool|float|int|object|resource|string|null
138138
*/

system/Debug/Toolbar.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ protected function roundTo(float $number, int $increments = 5): float
350350
* @param ResponseInterface $response
351351
*
352352
* @return void
353+
* @phpstan-return never|void
353354
*/
354355
public function prepare(?RequestInterface $request = null, ?ResponseInterface $response = null)
355356
{

0 commit comments

Comments
 (0)