Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@
"symfony/framework-bundle": "^6.4|^7.0",
"symfony/yaml": "^6.4|^7.0",
"dg/bypass-finals": "^1.1",
"assoconnect/php-quality-config": "^1.16",
"assoconnect/php-quality-config": "^2",
"guzzlehttp/guzzle": "^7.7",
"guzzlehttp/psr7": "^2.4.5",
"phpstan/phpstan-symfony": "^1.3.7"
"phpstan/phpstan-symfony": "^2"
},
"config": {
"allow-plugins": {
Expand Down
14 changes: 4 additions & 10 deletions src/Test/Functional/App/TestKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,15 @@
use Doctrine\Bundle\DoctrineBundle\DoctrineBundle;
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\HttpKernel\Bundle\BundleInterface;
use Symfony\Component\HttpKernel\Kernel;

class TestKernel extends Kernel
{
/**
* @return array<BundleInterface>
*/
public function registerBundles(): array
public function registerBundles(): iterable
{
return [
new FrameworkBundle(),
new AssoConnectValidatorBundle(),
new DoctrineBundle(),
];
yield new FrameworkBundle();
yield new AssoConnectValidatorBundle();
yield new DoctrineBundle();
}

public function getCacheDir(): string
Expand Down
2 changes: 1 addition & 1 deletion src/Validator/Constraints/ComposeValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ abstract class ComposeValidator extends ConstraintValidator
abstract protected function getSupportedConstraint(): string;

/**
* @return array<ValidatorAndConstraint>
* @return list<ValidatorAndConstraint>
*/
abstract protected function getValidatorsAndConstraints(mixed $value, Constraint $constraint): array;

Expand Down
2 changes: 1 addition & 1 deletion src/Validator/Constraints/EntityValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function validate(mixed $entity, Constraint $constraint): void

/**
* @param FieldMapping $fieldMapping
* @return Constraint[]
* @return list<Constraint>
*/
public function getConstraintsForType(array $fieldMapping): array
{
Expand Down
2 changes: 1 addition & 1 deletion src/Validator/Constraints/Phone.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Phone extends Constraint
public const INVALID_COUNTRY_CODE = '5530a448-f887-48c0-8ef8-77f206aa52b6';

/**
* @return array<int>
* @return list<int>
*/
public function getValidTypes(): array
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function supports(string $type): bool;

/**
* @param FieldMapping $fieldMapping
* @return Constraint[]
* @return list<Constraint>
*/
public function getConstraints(array $fieldMapping): array;
}
Loading