Skip to content

Commit 0665544

Browse files
authored
Merge pull request #2713 from Nek-/patch-1
Fix error message in identifiers extractor
2 parents 4df163a + eb1ebf6 commit 0665544

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Api/IdentifiersExtractor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function __construct(PropertyNameCollectionFactoryInterface $propertyName
4242
$this->resourceClassResolver = $resourceClassResolver;
4343

4444
if (null === $this->resourceClassResolver) {
45-
@trigger_error(sprintf('Not injecting %s in the CachedIdentifiersExtractor might introduce cache issues with object identifiers.', ResourceClassResolverInterface::class), E_USER_DEPRECATED);
45+
@trigger_error(sprintf('Not injecting %s in the IdentifiersExtractor might introduce cache issues with object identifiers.', ResourceClassResolverInterface::class), E_USER_DEPRECATED);
4646
}
4747
}
4848

tests/Api/IdentifiersExtractorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ private function getResourceClassResolver()
185185

186186
/**
187187
* @group legacy
188-
* @expectedDeprecation Not injecting ApiPlatform\Core\Api\ResourceClassResolverInterface in the CachedIdentifiersExtractor might introduce cache issues with object identifiers.
188+
* @expectedDeprecation Not injecting ApiPlatform\Core\Api\ResourceClassResolverInterface in the IdentifiersExtractor might introduce cache issues with object identifiers.
189189
*/
190190
public function testLegacyGetIdentifiersFromItem()
191191
{

tests/Bridge/Symfony/Routing/IriConverterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ public function testNoIdentifiersException()
309309
/**
310310
* @group legacy
311311
* @expectedDeprecation Not injecting "ApiPlatform\Core\Api\IdentifiersExtractorInterface" is deprecated since API Platform 2.1 and will not be possible anymore in API Platform 3
312-
* @expectedDeprecation Not injecting ApiPlatform\Core\Api\ResourceClassResolverInterface in the CachedIdentifiersExtractor might introduce cache issues with object identifiers.
312+
* @expectedDeprecation Not injecting ApiPlatform\Core\Api\ResourceClassResolverInterface in the IdentifiersExtractor might introduce cache issues with object identifiers.
313313
*/
314314
public function testLegacyConstructor()
315315
{

0 commit comments

Comments
 (0)