From 99848d82a72417cc70d3d57cbae0887040ca7fbe Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Thu, 11 Apr 2024 16:37:03 +0200 Subject: [PATCH] Add stub for Compound::getConstraints() --- extension.neon | 2 ++ .../Component/Validator/Constraints/Composite.stub | 9 +++++++++ .../Component/Validator/Constraints/Compound.stub | 14 ++++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 stubs/Symfony/Component/Validator/Constraints/Composite.stub create mode 100644 stubs/Symfony/Component/Validator/Constraints/Compound.stub diff --git a/extension.neon b/extension.neon index 09837d28..1eb888ab 100644 --- a/extension.neon +++ b/extension.neon @@ -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 diff --git a/stubs/Symfony/Component/Validator/Constraints/Composite.stub b/stubs/Symfony/Component/Validator/Constraints/Composite.stub new file mode 100644 index 00000000..8344ea94 --- /dev/null +++ b/stubs/Symfony/Component/Validator/Constraints/Composite.stub @@ -0,0 +1,9 @@ + $options + * @return array + */ + abstract protected function getConstraints(array $options): array; +}