Skip to content

Commit 9df3fec

Browse files
committed
fix: Fixing psalm warnings
1 parent 8e7c2ab commit 9df3fec

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

psalm.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,16 @@
3333
<file name="src/Security/AccessCheckerProvider.php"/>
3434
</errorLevel>
3535
</InvalidReturnStatement>
36+
<MoreSpecificReturnType>
37+
<errorLevel type="suppress">
38+
<file name="src/Serializer/GroupsAndAttributesContextBuilder.php"/>
39+
</errorLevel>
40+
</MoreSpecificReturnType>
41+
<LessSpecificReturnStatement>
42+
<errorLevel type="suppress">
43+
<file name="src/Serializer/GroupsAndAttributesContextBuilder.php"/>
44+
</errorLevel>
45+
</LessSpecificReturnStatement>
3646
</issueHandlers>
3747

3848
<plugins>

src/Serializer/GroupsAndAttributesContextBuilder.php

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

33
namespace Dontdrinkandroot\ApiPlatformBundle\Serializer;
44

5-
use ApiPlatform\Serializer\SerializerContextBuilderInterface;
5+
use ApiPlatform\State\SerializerContextBuilderInterface;
66
use Dontdrinkandroot\ApiPlatformBundle\Request\ApiRequest;
77
use Dontdrinkandroot\ApiPlatformBundle\Serializer\Attribute\AttributesMapperInterface;
88
use Dontdrinkandroot\ApiPlatformBundle\Serializer\Group\GroupsMapperInterface;

tests/Acceptance/AbstractAcceptanceTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ abstract class AbstractAcceptanceTest extends WebTestCase
1111
{
1212
use ApiTestTrait;
1313

14+
/**
15+
* @psalm-suppress InternalMethod
16+
*/
1417
protected static function loadFixtures(array $classNames = []): ReferenceRepository
1518
{
1619
return self::getService(DatabaseToolCollection::class)->get()

0 commit comments

Comments
 (0)