From eeb2f69808323d76fb8eb8258022cadb0662802a Mon Sep 17 00:00:00 2001 From: Rick Lam Date: Wed, 27 May 2026 15:22:47 +0100 Subject: [PATCH] Raise mockery/mockery floor to ^1.3.1 for PHPUnit 8 compatibility Mockery < 1.2.3 declares MockeryPHPUnitIntegration::assertPostConditions() without the ': void' return type that PHPUnit 8's TestCase requires, which is a fatal error. The declared '^1.0' floor therefore could not actually install against the PHPUnit 8 now required, as the CI --prefer-lowest job exposed. Bump the floor to ^1.3.1. Validated on PHP 7.4 with --prefer-lowest (mockery 1.3.1 + symfony/console 4.0 + symfony/event-dispatcher 5.0 + phpunit 8.5.52): 131 tests pass. Co-Authored-By: Claude Opus 4.7 (1M context) --- composer.json | 2 +- composer.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 87a1473..4734af2 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,7 @@ "psr/log": "^1.0" }, "require-dev": { - "mockery/mockery": "^1.0", + "mockery/mockery": "^1.3.1", "phpunit/phpunit": "^8.5.52", "squizlabs/php_codesniffer": "^3.3.1", "graze/standards": "^2", diff --git a/composer.lock b/composer.lock index 54b75ab..a25f828 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "e5047e547f24230866ea196de65cd0da", + "content-hash": "3984bf50996842cda23d15d2bbc0d428", "packages": [ { "name": "graze/data-structure",