Skip to content

Commit 99848d8

Browse files
derrabusondrejmirtes
authored andcommitted
Add stub for Compound::getConstraints()
1 parent a32bc86 commit 99848d8

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

extension.neon

+2
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ parameters:
9696
- stubs/Symfony/Component/Serializer/Normalizer/NormalizableInterface.stub
9797
- stubs/Symfony/Component/Serializer/Normalizer/NormalizerInterface.stub
9898
- stubs/Symfony/Component/Validator/Constraint.stub
99+
- stubs/Symfony/Component/Validator/Constraints/Composite.stub
100+
- stubs/Symfony/Component/Validator/Constraints/Compound.stub
99101
- stubs/Symfony/Component/Validator/ConstraintViolationInterface.stub
100102
- stubs/Symfony/Component/Validator/ConstraintViolationListInterface.stub
101103
- stubs/Symfony/Contracts/Cache/CacheInterface.stub
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
namespace Symfony\Component\Validator\Constraints;
4+
5+
use Symfony\Component\Validator\Constraint;
6+
7+
abstract class Composite extends Constraint
8+
{
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
namespace Symfony\Component\Validator\Constraints;
4+
5+
use Symfony\Component\Validator\Constraint;
6+
7+
abstract class Compound extends Composite
8+
{
9+
/**
10+
* @param array<mixed> $options
11+
* @return array<Constraint>
12+
*/
13+
abstract protected function getConstraints(array $options): array;
14+
}

0 commit comments

Comments
 (0)