Skip to content

Commit

Permalink
Fix: Resolving conflict and Changed the return type with phpstan.
Browse files Browse the repository at this point in the history
  • Loading branch information
kai890707 committed Aug 9, 2023
1 parent a8e00b8 commit 2122069
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions system/Debug/Exceptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ public function __construct(ExceptionsConfig $config, $request, ResponseInterfac
* @codeCoverageIgnore
*
* @return void
* @phpstan-return never|void
*/
public function initialize()
{
Expand All @@ -116,6 +117,7 @@ public function initialize()
* @codeCoverageIgnore
*
* @return void
* @phpstan-return never|void
*/
public function exceptionHandler(Throwable $exception)
{
Expand Down Expand Up @@ -195,6 +197,7 @@ public function errorHandler(int $severity, string $message, ?string $file = nul
* @codeCoverageIgnore
*
* @return void
* @phpstan-return never|void
*/
public function shutdownHandler()
{
Expand Down Expand Up @@ -251,6 +254,7 @@ protected function determineView(Throwable $exception, string $templatePath): st
* Given an exception and status code will display the error to the client.
*
* @return void
* @phpstan-return never|void
*/
protected function render(Throwable $exception, int $statusCode)
{
Expand Down
2 changes: 1 addition & 1 deletion system/Debug/Timer.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public function has(string $name): bool
* Returns its return value if any.
*
* @param string $name The name of the timer
* @phpstan-param callable():mixed $callable callable to be executed
* @phpstan-param callable(): mixed $callable callable to be executed
*
* @return array|bool|float|int|object|resource|string|null
*/
Expand Down
1 change: 1 addition & 0 deletions system/Debug/Toolbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ protected function roundTo(float $number, int $increments = 5): float
* @param ResponseInterface $response
*
* @return void
* @phpstan-return never|void
*/
public function prepare(?RequestInterface $request = null, ?ResponseInterface $response = null)
{
Expand Down

0 comments on commit 2122069

Please sign in to comment.