Skip to content

Commit

Permalink
Revert "Fix: Changed the return type with phpstan"
Browse files Browse the repository at this point in the history
This reverts commit 77342cf.
  • Loading branch information
kai890707 committed Aug 9, 2023
1 parent 77342cf commit a8e00b8
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
4 changes: 0 additions & 4 deletions system/Debug/Exceptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ public function __construct(ExceptionsConfig $config, $request, ResponseInterfac
* @codeCoverageIgnore
*
* @return void
* @phpstan-return never|void
*/
public function initialize()
{
Expand All @@ -117,7 +116,6 @@ public function initialize()
* @codeCoverageIgnore
*
* @return void
* @phpstan-return never|void
*/
public function exceptionHandler(Throwable $exception)
{
Expand Down Expand Up @@ -197,7 +195,6 @@ public function errorHandler(int $severity, string $message, ?string $file = nul
* @codeCoverageIgnore
*
* @return void
* @phpstan-return never|void
*/
public function shutdownHandler()
{
Expand Down Expand Up @@ -254,7 +251,6 @@ 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
2 changes: 0 additions & 2 deletions system/Debug/Toolbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,6 @@ 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 Expand Up @@ -439,7 +438,6 @@ public function prepare(?RequestInterface $request = null, ?ResponseInterface $r
* @codeCoverageIgnore
*
* @return void
* @phpstan-return never|void
*/
public function respond()
{
Expand Down
2 changes: 1 addition & 1 deletion system/Debug/Toolbar/Collectors/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function __construct()
* The static method used during Events to collect
* data.
*
* @internal
* @internal param $ array \CodeIgniter\Database\Query
*
* @return void
*/
Expand Down

0 comments on commit a8e00b8

Please sign in to comment.