refactor!: require PHP 8.4
Tests / PHP 8.4 (push) Failing after 1m26s

Drop support for PHP 8.3 and lower. The package now declares >=8.4, and CI runs
only on 8.4.

- composer.json: require php >=8.4.
- mago.toml: php-version = "8.4", matching the minimum supported version.
- phpstan.neon: phpVersion 80400.
- Upgrade phpstan/phpstan to ^2.3: 1.x cannot parse `new Foo()->bar()`, which the
  8.4 formatter now emits.
- Narrow ArrayGateway::count() to int, matching what the fixture actually returns.
- CI: single PHP 8.4 job using the php:8.4-cli container instead of setup-php,
  which failed with a TLS handshake timeout on the runner.

BREAKING CHANGE: PHP 8.4 is now required.
This commit is contained in:
dgarcia committed 2026-11-15 10:58:17 -03:00
1 parent a20762a715
commit 807992ecab
15 files changed
+57 -62

No files matched your search

+2 -2
View File
@@ -88,7 +88,7 @@ final class BearerAuthTest extends TestCase
public function testRouterRejectsBeforeReachingController(): void
{
$router = (new Router())->withMiddleware(
$router = new Router()->withMiddleware(
new BearerAuth(static fn(string $token): ?array => null),
);
$router->get('/x', static fn(): Response => new Response(['leaked' => true]));
@@ -101,7 +101,7 @@ final class BearerAuthTest extends TestCase
public function testRouterAllowsValidToken(): void
{
$router = (new Router())->withMiddleware(new BearerAuth(static fn(string $token): array => [
$router = new Router()->withMiddleware(new BearerAuth(static fn(string $token): array => [
'id' => 1,
]));
$router->get(