mirror of
https://github.com/opdavies/build-configs.git
synced 2025-09-06 11:25:33 +01:00
fix: PHPStan errors
This commit is contained in:
parent
96fba34f4a
commit
8256fc0a81
1 changed files with 6 additions and 0 deletions
|
@ -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'])],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue