From 745425c936957d10e8ec85d12a9c014c404c57f1 Mon Sep 17 00:00:00 2001 From: Sonata CI Date: Sat, 20 Aug 2022 08:00:09 +0100 Subject: [PATCH] DevKit updates for 1.x branch (#383) * DevKit updates * Fix cs Co-authored-by: Vincent Langlet --- .php-cs-fixer.dist.php | 2 +- src/Validator/ErrorElement.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index 568a3840..0547e837 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -47,7 +47,7 @@ 'ordered_imports' => ['sort_algorithm' => 'alpha', 'imports_order' => ['class', 'function', 'const']], 'php_unit_strict' => true, 'php_unit_test_case_static_method_calls' => true, - 'phpdoc_to_comment' => ['ignored_tags' => ['psalm-suppress']], + 'phpdoc_to_comment' => ['ignored_tags' => ['psalm-suppress', 'phpstan-var']], 'single_line_throw' => false, 'static_lambda' => true, 'strict_comparison' => true, diff --git a/src/Validator/ErrorElement.php b/src/Validator/ErrorElement.php index 46b2f0d4..48447c07 100755 --- a/src/Validator/ErrorElement.php +++ b/src/Validator/ErrorElement.php @@ -266,9 +266,9 @@ private function getValue() /** * @param array $options * - * @throws \RuntimeException - * * @return Constraint + * + * @throws \RuntimeException */ private function newConstraint(string $name, array $options = []) {