Skip to content

Commit 3117b60

Browse files
committed
Merge branch '0.10' into 0.11
2 parents 81c96d2 + ec579a9 commit 3117b60

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ExpressionLanguage/ExpressionFunction/GraphQL/IsTypeOf.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public function __construct($name = 'isTypeOf')
1111
parent::__construct(
1212
$name,
1313
function ($className) {
14-
return sprintf('($className = %s) && $value instanceof $className', $className);
14+
return sprintf('(($className = %s) && $value instanceof $className)', $className);
1515
}
1616
);
1717
}

ExpressionLanguage/ExpressionFunction/Security/IsAuthenticated.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public function __construct($name = 'isAuthenticated')
1111
parent::__construct(
1212
$name,
1313
function () {
14-
return '$globalVariable->get(\'container\')->get(\'security.authorization_checker\')->isGranted(\'IS_AUTHENTICATED_REMEMBERED\') || $globalVariable->get(\'container\')->get(\'security.authorization_checker\')->isGranted(\'IS_AUTHENTICATED_FULLY\')';
14+
return '($globalVariable->get(\'container\')->get(\'security.authorization_checker\')->isGranted(\'IS_AUTHENTICATED_REMEMBERED\') || $globalVariable->get(\'container\')->get(\'security.authorization_checker\')->isGranted(\'IS_AUTHENTICATED_FULLY\'))';
1515
}
1616
);
1717
}

0 commit comments

Comments
 (0)