Package: php-doctrine-common Version: 3.2.0-1 Severity: normal Tags: patch Control: block 976811 by -1
The tests fail on PHP 8.1 because the output is displayed in a different order. The simple attached patch fixes the issue, but needs to be applied in sync when PHP 8.1 becomes the default in Debian. Regards David
From 38efa9220b7290aeddbfdfa6ab4e7a4f7423b5d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Pr=C3=A9vot?= <da...@tilapin.org> Date: Thu, 25 Nov 2021 08:17:18 -0400 Subject: [PATCH] Reorder expected result for PHP 8.1 --- tests/Doctrine/Tests/Common/Util/DebugTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Doctrine/Tests/Common/Util/DebugTest.php b/tests/Doctrine/Tests/Common/Util/DebugTest.php index 306810c9..191e8120 100644 --- a/tests/Doctrine/Tests/Common/Util/DebugTest.php +++ b/tests/Doctrine/Tests/Common/Util/DebugTest.php @@ -148,12 +148,12 @@ class DebugTest extends DoctrineTestCase 'different-attributes' => [ new TestAsset\ChildClass(), [ - 'childPublicAttribute' => 4, - 'childProtectedAttribute:protected' => 5, - 'childPrivateAttribute:Doctrine\Tests\Common\Util\TestAsset\ChildClass:private' => 6, 'parentPublicAttribute' => 1, 'parentProtectedAttribute:protected' => 2, 'parentPrivateAttribute:Doctrine\Tests\Common\Util\TestAsset\ParentClass:private' => 3, + 'childPublicAttribute' => 4, + 'childProtectedAttribute:protected' => 5, + 'childPrivateAttribute:Doctrine\Tests\Common\Util\TestAsset\ChildClass:private' => 6, ], ], 'same-attributes' => [ @@ -161,8 +161,8 @@ class DebugTest extends DoctrineTestCase [ 'parentPublicAttribute' => 4, 'parentProtectedAttribute:protected' => 5, - 'parentPrivateAttribute:Doctrine\Tests\Common\Util\TestAsset\ChildWithSameAttributesClass:private' => 6, 'parentPrivateAttribute:Doctrine\Tests\Common\Util\TestAsset\ParentClass:private' => 3, + 'parentPrivateAttribute:Doctrine\Tests\Common\Util\TestAsset\ChildWithSameAttributesClass:private' => 6, ], ], ]; -- 2.34.0
signature.asc
Description: PGP signature