Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/1.3.x' into 1.4.x
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed May 24, 2024
2 parents 51183fe + f4b9407 commit d530cfe
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
2 changes: 2 additions & 0 deletions extension.neon
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ parameters:
- stubs/Symfony/Component/Serializer/Normalizer/NormalizableInterface.stub
- stubs/Symfony/Component/Serializer/Normalizer/NormalizerInterface.stub
- stubs/Symfony/Component/Validator/Constraint.stub
- stubs/Symfony/Component/Validator/Constraints/Composite.stub
- stubs/Symfony/Component/Validator/Constraints/Compound.stub
- stubs/Symfony/Component/Validator/ConstraintViolationInterface.stub
- stubs/Symfony/Component/Validator/ConstraintViolationListInterface.stub
- stubs/Symfony/Contracts/Cache/CacheInterface.stub
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
namespace Symfony\Component\Validator;

/**
* @method string __toString() Converts the violation into a string for debugging purposes. Not implementing it is deprecated since Symfony 6.1.
* @method Constraint|null getConstraint() Returns the constraint whose validation caused the violation. Not implementing it is deprecated since Symfony 6.3.
* @method mixed getCause() Returns the cause of the violation. Not implementing it is deprecated since Symfony 6.2.
* @method string __toString() Converts the violation into a string for debugging purposes. Not implementing it is deprecated since Symfony 6.1.
*/
interface ConstraintViolationInterface
{
Expand Down
9 changes: 9 additions & 0 deletions stubs/Symfony/Component/Validator/Constraints/Composite.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

namespace Symfony\Component\Validator\Constraints;

use Symfony\Component\Validator\Constraint;

abstract class Composite extends Constraint
{
}
14 changes: 14 additions & 0 deletions stubs/Symfony/Component/Validator/Constraints/Compound.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

namespace Symfony\Component\Validator\Constraints;

use Symfony\Component\Validator\Constraint;

abstract class Compound extends Composite
{
/**
* @param array<string, mixed> $options
* @return array<Constraint>
*/
abstract protected function getConstraints(array $options): array;
}

0 comments on commit d530cfe

Please sign in to comment.