You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** * Returns the inherited roles for a passed role name. If no role name * has been specified it will return the whole array. If the role has not * been found it returns an empty array*/publicfunctiongetInheritedRoles(string roleName = null) ->array
{
var result;
ifnull!== roleName {
returnthis->roleInherits;
}
if!fetch result, this->roleInherits[roleName] {
return [];
}
return result;
}
This produces:
[ERROR] Unknown type: string in /srv/phalcon/Acl/Adapter/Memory.zep on line 527
If we change the condition:
if null !== roleName {
to
if !roleName {
or
if typeof roleName !== "string" {
it works fine.
The text was updated successfully, but these errors were encountered:
This produces:
If we change the condition:
to
or
it works fine.
The text was updated successfully, but these errors were encountered: