Skip to content

Commit

Permalink
disallowedAttributes (named) params can also be an array (#190)
Browse files Browse the repository at this point in the history
Fix `disallowedAttributes`, otherwise it won't accept:
```php
'disallowedAttributes' => [
            [
                'attribute' => Doctrine\ORM\Mapping\Entity::class,
                'message' => 'every entity requires a repository class.',
                'allowParamsAnywhereAnyValue' => [
                    [
                        'position' => 1,
                        'name' => 'repositoryClass',
                    ],
                ],
            ],
        ],
```

```
Invalid configuration:
The item 'parameters › disallowedAttributes › 0 › allowParamsAnywhereAnyValue › 0' expects to be string, array given.
Invalid configuration:
The item 'parameters › disallowedAttributes › 0 › allowParamsAnywhereAnyValue › 0' expects to be int|string|bool, array given.
```
  • Loading branch information
spaze committed Apr 30, 2023
2 parents 9a7fb62 + 5654f63 commit 3dfc371
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extension.neon
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ parametersSchema:
string(),
listOf(string()),
arrayOf(anyOf(int(), string(), bool())),
listOf(arrayOf(anyOf(int(), string(), bool()))),
)
)
)
Expand Down

0 comments on commit 3dfc371

Please sign in to comment.