if its a BC then I can add a validation check for string and cast those to
array instead? casting everything to array wont allow iteratable use, u
must if you want to use DoctrineORM for example


met vriendelijke groeten,

Jan Esser
*Webdeveloper *
E jane@inventis.be
T +32 89 50 16 40


On 14 August 2013 22:37, Michaël Gallego <notifications@github.com> wrote:

> In src/ZfcRbac/Service/Rbac.php:
>
> > @@ -113,7 +113,7 @@ public function hasRole($roles)
> >          // Have to iterate and load roles to verify that parents are loaded.
> >          // If it wasn't for inheritance we could just check the getIdentity()->getRoles() method.
> >          foreach($roles as $role) {
> > -            foreach((array) $this->getIdentity()->getRoles() as $userRole) {
>
> Why did you remove that? It may be a BC, in case someone return just the
> role as a stirng.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/ZF-Commons/ZfcRbac/pull/71/files#r5775434>
> .
>