Skip to content

Commit

Permalink
[Validator] Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Jul 21, 2023
1 parent 129c570 commit 2e8e904
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Tests/Fixtures/Annotation/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Entity extends EntityParent implements EntityInterfaceB
/**
* @Assert\Type("integer")
*/
protected $other;
protected ?int $other;

public function __construct($internal = null)
{
Expand Down
2 changes: 1 addition & 1 deletion Tests/Fixtures/Annotation/EntityParent.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class EntityParent implements EntityInterfaceA
/**
* @NotNull
*/
protected $other;
protected ?int $other;

public function getData()
{
Expand Down
2 changes: 1 addition & 1 deletion Tests/Fixtures/Attribute/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Entity extends EntityParent implements EntityInterfaceB
public $data = 'Overridden data';
public $initialized = false;
#[Assert\Type('integer')]
protected $other;
protected ?int $other;

public function __construct($internal = null)
{
Expand Down
2 changes: 1 addition & 1 deletion Tests/Fixtures/Attribute/EntityParent.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class EntityParent implements EntityInterfaceA
private $child;

#[NotNull]
protected $other;
protected ?int $other;

public function getData()
{
Expand Down
2 changes: 1 addition & 1 deletion Tests/Fixtures/NestedAttribute/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class Entity extends EntityParent implements EntityInterfaceB
public $data = 'Overridden data';
public $initialized = false;
#[Assert\Type('integer')]
protected $other;
protected ?int $other;

public function __construct($internal = null)
{
Expand Down
2 changes: 1 addition & 1 deletion Tests/Fixtures/NestedAttribute/EntityParent.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class EntityParent implements EntityInterfaceA
private $child;

#[NotNull]
protected $other;
protected ?int $other;

public function getData()
{
Expand Down

0 comments on commit 2e8e904

Please sign in to comment.