Skip to content

Commit

Permalink
disallowedAttributes (named) params can also be an array
Browse files Browse the repository at this point in the history
Fix disallowedAttributes schema, 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
ruudk authored and spaze committed Apr 30, 2023
1 parent 9a7fb62 commit 5654f63
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 5654f63

Please sign in to comment.