fix(Console): add void as valid return type for command methods
The MethodSignatureAnalyzer was rejecting command methods with void return type, causing the schedule:run command to fail validation.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Framework\ExceptionHandling;
|
||||
@@ -9,9 +10,9 @@ use ErrorException;
|
||||
final readonly class ErrorHandler implements ErrorHandlerInterface
|
||||
{
|
||||
public function __construct(
|
||||
private ErrorHandlerStrategy $strategy = new StrictErrorPolicy,
|
||||
) {}
|
||||
|
||||
private ErrorHandlerStrategy $strategy = new StrictErrorPolicy(),
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws ErrorException
|
||||
@@ -42,6 +43,6 @@ final readonly class ErrorHandler implements ErrorHandlerInterface
|
||||
|
||||
private function isSuppressed($severity): bool
|
||||
{
|
||||
return !(error_reporting() & $severity);
|
||||
return ! (error_reporting() & $severity);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user