Skip to content

Commit 320316a

Browse files
committed
fix false deprecation notice
1 parent ae79ac8 commit 320316a

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

src/Annotation/AttributesHydratorTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ private function hydrateAttributes(array $values): void
4949
unset($values['attributes']);
5050
}
5151

52-
if (array_key_exists('accessControl', $values)) {
52+
if (\array_key_exists('accessControl', $values)) {
5353
$values['security'] = $values['accessControl'];
5454
@trigger_error('Attribute "accessControl" is deprecated in annotation since API Platform 2.5, prefer using "security" attribute instead', E_USER_DEPRECATED);
5555
unset($values['accessControl']);
5656
}
57-
if (array_key_exists('accessControlMessage', $values)) {
57+
if (\array_key_exists('accessControlMessage', $values)) {
5858
$values['securityMessage'] = $values['accessControlMessage'];
5959
@trigger_error('Attribute "accessControlMessage" is deprecated in annotation since API Platform 2.5, prefer using "securityMessage" attribute instead', E_USER_DEPRECATED);
6060
unset($values['accessControlMessage']);

src/Test/DoctrineOrmFilterTestCase.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ abstract class DoctrineOrmFilterTestCase extends KernelTestCase
5555
*/
5656
protected $filterClass;
5757

58+
/**
59+
* @group legacy
60+
*/
5861
protected function setUp(): void
5962
{
6063
self::bootKernel();

tests/Bridge/Symfony/Bundle/Command/SwaggerCommandTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ protected function setUp(): void
4141
$this->tester = new ApplicationTester($application);
4242
}
4343

44+
/**
45+
* @group legacy
46+
*/
4447
public function testExecuteWithAliasVersion3()
4548
{
4649
$this->tester->run(['command' => 'api:swagger:export', '--spec-version' => 3]);

0 commit comments

Comments
 (0)