Skip to content

Commit

Permalink
Add stub for Compound::getConstraints()
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus authored and ondrejmirtes committed Apr 12, 2024
1 parent a32bc86 commit 99848d8
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions extension.neon
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
9 changes: 9 additions & 0 deletions stubs/Symfony/Component/Validator/Constraints/Composite.stub
@@ -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
@@ -0,0 +1,14 @@
<?php

namespace Symfony\Component\Validator\Constraints;

use Symfony\Component\Validator\Constraint;

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

0 comments on commit 99848d8

Please sign in to comment.