Skip to content

Commit 0f98bd1

Browse files
committed
Do not expect deprecation in test
1 parent d462eb9 commit 0f98bd1

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

tests/Type/Doctrine/Query/QueryResultTypeWalkerTest.php

+1-15
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public function setUp(): void
199199
}
200200

201201
/** @dataProvider getTestData */
202-
public function test(Type $expectedType, string $dql, ?string $expectedExceptionMessage = null, ?string $expectedDeprecationMessage = null): void
202+
public function test(Type $expectedType, string $dql, ?string $expectedExceptionMessage = null): void
203203
{
204204
$em = self::$em;
205205

@@ -210,9 +210,6 @@ public function test(Type $expectedType, string $dql, ?string $expectedException
210210
if ($expectedExceptionMessage !== null) {
211211
$this->expectException(Throwable::class);
212212
$this->expectExceptionMessage($expectedExceptionMessage);
213-
} elseif ($expectedDeprecationMessage !== null) {
214-
$this->expectDeprecation();
215-
$this->expectDeprecationMessage($expectedDeprecationMessage);
216213
}
217214

218215
QueryResultTypeWalker::walk(
@@ -1548,17 +1545,6 @@ private function yieldConditionalDataset(): iterable
15481545
FROM QueryResult\Entities\Many m
15491546
',
15501547
null,
1551-
InstalledVersions::satisfies(new VersionParser(), 'doctrine/dbal', '>=3.4')
1552-
? null
1553-
: (
1554-
PHP_VERSION_ID >= 80100
1555-
? 'strpos(): Passing null to parameter #2 ($needle) of type string is deprecated'
1556-
: (
1557-
PHP_VERSION_ID < 80000
1558-
? 'strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior'
1559-
: null
1560-
)
1561-
),
15621548
];
15631549

15641550
$ormVersion = InstalledVersions::getVersion('doctrine/orm');

0 commit comments

Comments
 (0)