fix(Console): add void as valid return type for command methods
All checks were successful
Test Runner / test-php (push) Successful in 31s
Deploy Application / deploy (push) Successful in 1m42s
Test Runner / test-basic (push) Successful in 7s

The MethodSignatureAnalyzer was rejecting command methods with void return
type, causing the schedule:run command to fail validation.
This commit is contained in:
2025-11-26 06:16:09 +01:00
parent 386baff65f
commit c93d3f07a2
73 changed files with 1674 additions and 163 deletions

View File

@@ -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);
}
}