Skip to content

Commit f3d4afe

Browse files
committed
fix(symfony): validator type-info
1 parent 4d70f6f commit f3d4afe

File tree

41 files changed

+1122
-584
lines changed

Some content is hidden

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

41 files changed

+1122
-584
lines changed

phpstan.neon.dist

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,6 @@ parameters:
6262
paths:
6363
- tests/Fixtures/TestBundle/Document/
6464
- src/Metadata/Tests/Fixtures/ApiResource/
65-
-
66-
message: '#Parameter \#1 \$constraint of method#'
67-
paths:
68-
- tests/Symfony/Validator/Metadata/Property/Restriction/
6965
- '#Access to an undefined property Prophecy\\Prophecy\\ObjectProphecy<(\\?[a-zA-Z0-9_]+)+>::\$[a-zA-Z0-9_]+#'
7066
# https://github.com/phpstan/phpstan-symfony/issues/76
7167
-

tests/Fixtures/DummyAtLeastOneOfValidatedEntity.php renamed to src/Symfony/Tests/Fixtures/DummyAtLeastOneOfValidatedEntity.php

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

1212
declare(strict_types=1);
1313

14-
namespace ApiPlatform\Tests\Fixtures;
14+
namespace ApiPlatform\Symfony\Tests\Fixtures;
1515

1616
use Symfony\Component\Validator\Constraints as Assert;
1717

tests/Fixtures/DummyCollectionValidatedEntity.php renamed to src/Symfony/Tests/Fixtures/DummyCollectionValidatedEntity.php

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

1212
declare(strict_types=1);
1313

14-
namespace ApiPlatform\Tests\Fixtures;
14+
namespace ApiPlatform\Symfony\Tests\Fixtures;
1515

1616
use Symfony\Component\Validator\Constraints as Assert;
1717

tests/Fixtures/DummyCompoundValidatedEntity.php renamed to src/Symfony/Tests/Fixtures/DummyCompoundValidatedEntity.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
declare(strict_types=1);
1313

14-
namespace ApiPlatform\Tests\Fixtures;
14+
namespace ApiPlatform\Symfony\Tests\Fixtures;
1515

16-
use ApiPlatform\Tests\Fixtures\TestBundle\Validator\Constraint\DummyCompoundRequirements;
16+
use ApiPlatform\Symfony\Tests\Fixtures\TestBundle\Validator\Constraint\DummyCompoundRequirements;
1717

1818
class DummyCompoundValidatedEntity
1919
{

tests/Fixtures/DummyCountValidatedEntity.php renamed to src/Symfony/Tests/Fixtures/DummyCountValidatedEntity.php

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

1212
declare(strict_types=1);
1313

14-
namespace ApiPlatform\Tests\Fixtures;
14+
namespace ApiPlatform\Symfony\Tests\Fixtures;
1515

1616
use Symfony\Component\Validator\Constraints as Assert;
1717

tests/Fixtures/DummyIriWithValidationEntity.php renamed to src/Symfony/Tests/Fixtures/DummyIriWithValidationEntity.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
declare(strict_types=1);
1313

14-
namespace ApiPlatform\Tests\Fixtures;
14+
namespace ApiPlatform\Symfony\Tests\Fixtures;
1515

1616
use Symfony\Component\Validator\Constraints as Assert;
1717

@@ -22,7 +22,7 @@
2222
*/
2323
class DummyIriWithValidationEntity
2424
{
25-
#[Assert\Url]
25+
#[Assert\Url(requireTld: true)]
2626
public $dummyUrl;
2727

2828
#[Assert\Email]

tests/Fixtures/DummyNumericValidatedEntity.php renamed to src/Symfony/Tests/Fixtures/DummyNumericValidatedEntity.php

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

1212
declare(strict_types=1);
1313

14-
namespace ApiPlatform\Tests\Fixtures;
14+
namespace ApiPlatform\Symfony\Tests\Fixtures;
1515

1616
use Symfony\Component\Validator\Constraints as Assert;
1717

tests/Fixtures/DummyRangeValidatedEntity.php renamed to src/Symfony/Tests/Fixtures/DummyRangeValidatedEntity.php

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

1212
declare(strict_types=1);
1313

14-
namespace ApiPlatform\Tests\Fixtures;
14+
namespace ApiPlatform\Symfony\Tests\Fixtures;
1515

1616
use Symfony\Component\Validator\Constraints as Assert;
1717

tests/Fixtures/DummySequentiallyValidatedEntity.php renamed to src/Symfony/Tests/Fixtures/DummySequentiallyValidatedEntity.php

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

1212
declare(strict_types=1);
1313

14-
namespace ApiPlatform\Tests\Fixtures;
14+
namespace ApiPlatform\Symfony\Tests\Fixtures;
1515

1616
use Symfony\Component\Validator\Constraints as Assert;
1717

tests/Fixtures/DummyUniqueValidatedEntity.php renamed to src/Symfony/Tests/Fixtures/DummyUniqueValidatedEntity.php

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

1212
declare(strict_types=1);
1313

14-
namespace ApiPlatform\Tests\Fixtures;
14+
namespace ApiPlatform\Symfony\Tests\Fixtures;
1515

1616
use Symfony\Component\Validator\Constraints as Assert;
1717

0 commit comments

Comments
 (0)