fix: PHPStan errors

This commit is contained in:
Oliver Davies 2023-04-16 20:06:52 +01:00
parent 96fba34f4a
commit 8256fc0a81

View file

@ -8,6 +8,9 @@ use Symfony\Component\Validator\Constraints as Assert;
final class ConfigurationData
{
/**
* @var array<string,string|integer|array<int,string>>
*/
#[Assert\Collection(
allowExtraFields: false,
fields: [
@ -20,6 +23,9 @@ final class ConfigurationData
)]
public array $database;
/**
* @var array<string,string|null>
*/
#[Assert\Collection(
allowExtraFields: false,
fields: ['docroot' => new Assert\Choice([null, 'web', 'docroot'])],