Skip to content

Commit 708ae2e

Browse files
committed
SecurityExtension: fixed schema [Closes nette/di#194]
1 parent 7a1e097 commit 708ae2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Bridges/SecurityDI/SecurityExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ public function getConfigSchema(): Nette\Schema\Schema
4141
])->castTo('array')
4242
)
4343
),
44-
'roles' => Expect::arrayOf('string'), // role => parent(s)
45-
'resources' => Expect::arrayOf('string'), // resource => parent
44+
'roles' => Expect::arrayOf('string|array|null'), // role => parent(s)
45+
'resources' => Expect::arrayOf('string|null'), // resource => parent
4646
]);
4747
}
4848

0 commit comments

Comments
 (0)