<p dir="auto">hi,</p>
<p dir="auto">the constructor of Symfony\Component\Security\Acl\Domain\RoleSecurityIdentity\RoleSecurityIdentity takes $role as a parameter and checks if it is an instance of Symfony\Component\Security\Core\Role\Role. Following the guidelines in <a href="http://symfony.com/doc/master/cookbook/security/entity_provider.html" rel="nofollow">http://symfony.com/doc/master/cookbook/security/entity_provider.html</a>, our Role class implements RoleInterface. This results in RoleSecurityIdentity::role being populated with an object during the PermissionsEvaluation phase.</p>
<p dir="auto">the fix, for me was easy, and should not break any other parts of the implementation, as Core\Role\Role also implements Core\Role\RoleInterface.</p>
<p dir="auto">[[WARNING: HANDWRITTEN DIFF]]<br>
&lt;&lt;&lt;<br>
[Symfony\Component\Security\Acl\Domain\RoleSecurityIdentity\RoleSecurityIdentity.php]<br>
-- use Symfony\Component\Security\Core\Role\Role;<br>
++ use Symfony\Component\Security\Core\Role\RoleInterface;<br>
[...]<br>
public function __construct($role)<br>
{<br>
--        if ($role instanceof Role) {<br>
++        if ($role instanceof RoleInterface) {</p>
<p dir="auto">i can submit a proper patch if required.</p>
<p dir="auto">regards,<br>
sb</p>
<p dir="auto">The "Symfony\Component\Console\Command::setApplication" default value is set to null.</p>
<p dir="auto">If null is pass to this method the execution of "$this-&gt;setHelperSet($application-&gt;getHelperSet());" will not be able to complete and throw a fatal error.</p>
<p dir="auto">This default value should be remove, or a check before setting the helperSet must be done.</p>