Skip to content

Commit

Permalink
EntityColumnRuleTest - testGeneratedIds with less complicated type th…
Browse files Browse the repository at this point in the history
…an bigint
  • Loading branch information
ondrejmirtes committed Feb 9, 2024
1 parent 8c36077 commit 87d961b
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions tests/Rules/Doctrine/ORM/EntityColumnRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ public function generatedIdsProvider(): Iterator
__DIR__ . '/data/GeneratedIdEntity2.php',
[
[
'Property PHPStan\Rules\Doctrine\ORM\GeneratedIdEntity2::$id type mapping mismatch: database can contain string|null but property expects string.',
'Property PHPStan\Rules\Doctrine\ORM\GeneratedIdEntity2::$id type mapping mismatch: database can contain int|null but property expects int.',
19,
],
],
Expand All @@ -310,7 +310,7 @@ public function generatedIdsProvider(): Iterator
__DIR__ . '/data/GeneratedIdEntity2.php',
[
[
'Property PHPStan\Rules\Doctrine\ORM\GeneratedIdEntity2::$id type mapping mismatch: database can contain string|null but property expects string.',
'Property PHPStan\Rules\Doctrine\ORM\GeneratedIdEntity2::$id type mapping mismatch: database can contain int|null but property expects int.',
19,
],
],
Expand Down
4 changes: 2 additions & 2 deletions tests/Rules/Doctrine/ORM/data/CompositePrimaryKeyEntity1.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class CompositePrimaryKeyEntity1
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="bigint", nullable=true)
* @var string
* @ORM\Column(type="integer", nullable=true)
* @var int
*/
private $id;

Expand Down
4 changes: 2 additions & 2 deletions tests/Rules/Doctrine/ORM/data/GeneratedIdEntity1.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class GeneratedIdEntity1
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="bigint")
* @var string
* @ORM\Column(type="integer")
* @var int
*/
private $id;

Expand Down
4 changes: 2 additions & 2 deletions tests/Rules/Doctrine/ORM/data/GeneratedIdEntity2.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class GeneratedIdEntity2
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="bigint", nullable=true)
* @var string
* @ORM\Column(type="integer", nullable=true)
* @var int
*/
private $id;

Expand Down
4 changes: 2 additions & 2 deletions tests/Rules/Doctrine/ORM/data/GeneratedIdEntity3.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class GeneratedIdEntity3
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="bigint")
* @var string|null
* @ORM\Column(type="integer")
* @var int|null
*/
private $id;

Expand Down
4 changes: 2 additions & 2 deletions tests/Rules/Doctrine/ORM/data/GeneratedIdEntity4.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class GeneratedIdEntity4
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="bigint", nullable=true)
* @var string|null
* @ORM\Column(type="integer", nullable=true)
* @var int|null
*/
private $id;

Expand Down

0 comments on commit 87d961b

Please sign in to comment.