Skip to content

Commit 7b5faaa

Browse files
authored
Merge pull request #12531 from greg0ire/fix-requiresphp-annot
Fix usage of RequiresPhp
2 parents 883c76a + 56f58b4 commit 7b5faaa

5 files changed

Lines changed: 8 additions & 7 deletions

File tree

tests/Tests/ORM/ConfigurationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ public function testSetGetTypedFieldMapper(): void
221221
self::assertSame($defaultTypedFieldMapper, $this->configuration->getTypedFieldMapper());
222222
}
223223

224-
#[RequiresPhp('8.4')]
224+
#[RequiresPhp('>=8.4.0')]
225225
#[IgnoreDeprecations]
226226
public function testDisablingNativeLazyObjectsIsDeprecated(): void
227227
{

tests/Tests/ORM/EntityManagerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public function testWrapInTransactionReThrowsThrowables(): void
181181
}
182182

183183
/** Resetting the EntityManager relies on lazy objects until https://github.com/doctrine/orm/issues/5933 is resolved */
184-
#[RequiresPhp('8.4')]
184+
#[RequiresPhp('>=8.4.0')]
185185
public function testLazyGhostEntityManager(): void
186186
{
187187
$reflector = new ReflectionClass(EntityManager::class);

tests/Tests/ORM/Functional/Ticket/GH11072/GH11072Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Doctrine\Tests\OrmFunctionalTestCase;
99
use PHPUnit\Framework\Attributes\RequiresPhp;
1010

11-
#[RequiresPhp('8.2')]
11+
#[RequiresPhp('>=8.2.0')]
1212
final class GH11072Test extends OrmFunctionalTestCase
1313
{
1414
/** @var SchemaValidator */

tests/Tests/ORM/Mapping/PropertyAccessors/RawValuePropertyAccessorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
use function trim;
1414

15-
#[RequiresPhp(versionRequirement: '>= 8.4.0')]
15+
#[RequiresPhp('>= 8.4.0')]
1616
class RawValuePropertyAccessorTest extends OrmTestCase
1717
{
1818
public function testSetGetValue(): void

tests/Tests/ORM/Proxy/ProxyFactoryTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ public function testProxyClonesParentFields(): void
239239
self::assertSame('Bob', $cloned->getName(), 'Expect properties on the CompanyPerson class to be cloned');
240240
}
241241

242-
#[RequiresPhp('8.4')]
242+
#[RequiresPhp('>=8.4.0')]
243+
#[IgnoreDeprecations]
243244
public function testProxyFactoryAcceptsNullProxyArgsWhenNativeLazyObjectsAreEnabled(): void
244245
{
245246
$this->emMock->getConfiguration()->enableNativeLazyObjects(true);
@@ -257,7 +258,7 @@ public function testProxyFactoryAcceptsNullProxyArgsWhenNativeLazyObjectsAreEnab
257258
self::assertTrue($reflection->isUninitializedLazyObject($proxy));
258259
}
259260

260-
#[RequiresPhp('8.4')]
261+
#[RequiresPhp('>=8.4.0')]
261262
#[RequiresMethod(ProxyHelper::class, 'generateLazyGhost')]
262263
#[IgnoreDeprecations]
263264
public function testProxyFactoryTriggersDeprecationWhenNativeLazyObjectsAreDisabled(): void
@@ -274,7 +275,7 @@ public function testProxyFactoryTriggersDeprecationWhenNativeLazyObjectsAreDisab
274275
);
275276
}
276277

277-
#[RequiresPhp('< 8.4')]
278+
#[RequiresPhp('< 8.4.0')]
278279
public function testProxyFactoryDoesNotTriggerDeprecationWhenNativeLazyObjectsAreDisabled(): void
279280
{
280281
$this->emMock->getConfiguration()->enableNativeLazyObjects(false);

0 commit comments

Comments
 (0)