mirror of
https://github.com/opdavies/build-configs.git
synced 2025-01-23 02:27:33 +00:00
fix: PHPStan errors
This commit is contained in:
parent
96fba34f4a
commit
8256fc0a81
|
@ -8,6 +8,9 @@ use Symfony\Component\Validator\Constraints as Assert;
|
||||||
|
|
||||||
final class ConfigurationData
|
final class ConfigurationData
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var array<string,string|integer|array<int,string>>
|
||||||
|
*/
|
||||||
#[Assert\Collection(
|
#[Assert\Collection(
|
||||||
allowExtraFields: false,
|
allowExtraFields: false,
|
||||||
fields: [
|
fields: [
|
||||||
|
@ -20,6 +23,9 @@ final class ConfigurationData
|
||||||
)]
|
)]
|
||||||
public array $database;
|
public array $database;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array<string,string|null>
|
||||||
|
*/
|
||||||
#[Assert\Collection(
|
#[Assert\Collection(
|
||||||
allowExtraFields: false,
|
allowExtraFields: false,
|
||||||
fields: ['docroot' => new Assert\Choice([null, 'web', 'docroot'])],
|
fields: ['docroot' => new Assert\Choice([null, 'web', 'docroot'])],
|
||||||
|
|
Loading…
Reference in a new issue