Skip to content

Commit fba5f10

Browse files
committed
Merge branch '0.12' into 0.13
2 parents ea0e1ab + b72f720 commit fba5f10

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Definition/ConfigProcessor/AclConfigProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static function acl(array $fields, AccessResolver $accessResolver, callab
2929
throw new UserWarning('Access denied to this field.');
3030
};
3131
foreach ($fields as &$field) {
32-
if (isset($field['access']) && true !== $field['access']) {
32+
if (\is_array($field) && isset($field['access']) && true !== $field['access']) {
3333
$accessChecker = $field['access'];
3434
if (false === $accessChecker) {
3535
$field['resolve'] = $deniedAccess;

src/Definition/ConfigProcessor/PublicFieldsFilterConfigProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public static function filter(array $fields)
1515
function ($field, $fieldName) {
1616
$exposed = true;
1717

18-
if (isset($field['public']) && \is_callable($field['public'])) {
18+
if (\is_array($field) && isset($field['public']) && \is_callable($field['public'])) {
1919
$exposed = (bool) \call_user_func($field['public'], $fieldName);
2020
}
2121

src/Definition/ConfigProcessor/WrapArgumentConfigProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function process(LazyConfig $lazyConfig): LazyConfig
4343
private function wrapFieldsArgument(array $fields)
4444
{
4545
foreach ($fields as &$field) {
46-
if (isset($field['resolve']) && \is_callable($field['resolve'])) {
46+
if (\is_array($field) && isset($field['resolve']) && \is_callable($field['resolve'])) {
4747
$field['resolve'] = $this->argumentFactory->wrapResolverArgs($field['resolve']);
4848
}
4949
}

0 commit comments

Comments
 (0)