Skip to content

Commit d530cfe

Browse files
committed
Merge remote-tracking branch 'origin/1.3.x' into 1.4.x
2 parents 51183fe + f4b9407 commit d530cfe

File tree

4 files changed

+28
-1
lines changed

4 files changed

+28
-1
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

stubs/Symfony/Component/Validator/ConstraintViolationInterface.stub

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
namespace Symfony\Component\Validator;
44

55
/**
6-
* @method string __toString() Converts the violation into a string for debugging purposes. Not implementing it is deprecated since Symfony 6.1.
6+
* @method Constraint|null getConstraint() Returns the constraint whose validation caused the violation. Not implementing it is deprecated since Symfony 6.3.
7+
* @method mixed getCause() Returns the cause of the violation. Not implementing it is deprecated since Symfony 6.2.
8+
* @method string __toString() Converts the violation into a string for debugging purposes. Not implementing it is deprecated since Symfony 6.1.
79
*/
810
interface ConstraintViolationInterface
911
{
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<string, mixed> $options
11+
* @return array<Constraint>
12+
*/
13+
abstract protected function getConstraints(array $options): array;
14+
}

0 commit comments

Comments
 (0)