Skip to content

Commit 146c1fd

Browse files
committed
phpstan
1 parent 5c51f0c commit 146c1fd

File tree

200 files changed

+220
-216
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

200 files changed

+220
-216
lines changed

phpstan.neon.dist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ parameters:
4242
ApiPlatform\Metadata\Resource\ResourceMetadataCollection:
4343
- handleNotFound
4444
ignoreErrors:
45+
# ignore type todo remove in 5.0
46+
-
47+
message: '#Symfony\\Component\\PropertyInfo\\Type#'
48+
identifier: class.notFound
4549
# False positives
4650
- message: '#Call to an undefined method Negotiation\\AcceptHeader::getType\(\).#'
4751
-

src/Doctrine/Common/Tests/Fixtures/TestBundle/Entity/DummyFriend.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use ApiPlatform\Metadata\ApiProperty;
1717
use ApiPlatform\Metadata\ApiResource;
1818
use Doctrine\ORM\Mapping as ORM;
19-
use Symfony\Component\Serializer\Annotation\Groups;
19+
use Symfony\Component\Serializer\Attribute\Groups;
2020
use Symfony\Component\Validator\Constraints as Assert;
2121

2222
/**

src/Doctrine/Common/Tests/Fixtures/TestBundle/Entity/EmbeddableDummy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
namespace ApiPlatform\Doctrine\Common\Tests\Fixtures\TestBundle\Entity;
1515

1616
use Doctrine\ORM\Mapping as ORM;
17-
use Symfony\Component\Serializer\Annotation\Groups;
17+
use Symfony\Component\Serializer\Attribute\Groups;
1818
use Symfony\Component\Validator\Constraints as Assert;
1919

2020
/**

src/Doctrine/Common/Tests/Fixtures/TestBundle/Entity/FourthLevel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use ApiPlatform\Metadata\Link;
1919
use Doctrine\Common\Collections\Collection;
2020
use Doctrine\ORM\Mapping as ORM;
21-
use Symfony\Component\Serializer\Annotation\Groups;
21+
use Symfony\Component\Serializer\Attribute\Groups;
2222

2323
/**
2424
* Fourth Level.

src/Doctrine/Common/Tests/Fixtures/TestBundle/Entity/ParentDummy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
namespace ApiPlatform\Doctrine\Common\Tests\Fixtures\TestBundle\Entity;
1515

1616
use Doctrine\ORM\Mapping as ORM;
17-
use Symfony\Component\Serializer\Annotation\Groups;
17+
use Symfony\Component\Serializer\Attribute\Groups;
1818

1919
/**
2020
* Parent Dummy.

src/Doctrine/Common/Tests/Fixtures/TestBundle/Entity/RelatedDummy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
use Doctrine\Common\Collections\ArrayCollection;
2424
use Doctrine\Common\Collections\Collection;
2525
use Doctrine\ORM\Mapping as ORM;
26-
use Symfony\Component\Serializer\Annotation\Groups;
26+
use Symfony\Component\Serializer\Attribute\Groups;
2727
use Symfony\Component\Validator\Constraints as Assert;
2828

2929
/**

src/Doctrine/Common/Tests/Fixtures/TestBundle/Entity/RelatedToDummyFriend.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use ApiPlatform\Metadata\GetCollection;
1919
use ApiPlatform\Metadata\Link;
2020
use Doctrine\ORM\Mapping as ORM;
21-
use Symfony\Component\Serializer\Annotation\Groups;
21+
use Symfony\Component\Serializer\Attribute\Groups;
2222
use Symfony\Component\Validator\Constraints as Assert;
2323

2424
/**

src/Doctrine/Common/Tests/Fixtures/TestBundle/Entity/ThirdLevel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use ApiPlatform\Metadata\Get;
1818
use ApiPlatform\Metadata\Link;
1919
use Doctrine\ORM\Mapping as ORM;
20-
use Symfony\Component\Serializer\Annotation\Groups;
20+
use Symfony\Component\Serializer\Attribute\Groups;
2121

2222
/**
2323
* Third Level.

src/Doctrine/Odm/Tests/PropertyInfo/DoctrineExtractorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ public function testGetTypesCatchExceptionLegacy(): void
268268

269269
public function testGetTypesCatchException(): void
270270
{
271-
$this->assertNull($this->createExtractor()->getType('Not\Exist', 'baz'));
271+
$this->assertNull($this->createExtractor()->getType(\Not\Exist::class, 'baz')); // @phpstan-ignore-line
272272
}
273273

274274
public function testGeneratedValueNotWritable(): void

src/Doctrine/Orm/Tests/Fixtures/Entity/Company.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
use ApiPlatform\Metadata\Link;
2020
use ApiPlatform\Metadata\Post;
2121
use Doctrine\ORM\Mapping as ORM;
22-
use Symfony\Component\Serializer\Annotation\Groups;
22+
use Symfony\Component\Serializer\Attribute\Groups;
2323

2424
#[ApiResource]
2525
#[GetCollection]

0 commit comments

Comments
 (0)