Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phalcon\Acl\Resource not implementing Phalcon\Acl\ResourceInterface #11959

Closed
rosasurfer opened this issue Jul 7, 2016 · 2 comments
Closed
Milestone

Comments

@rosasurfer
Copy link

While the methods defined by the interface are in place the interface itself is not implemented. This causes an error if a Resource instance is explicitely tested against the interface:

use Phalcon\Acl\Resource;
use Phalcon\Acl\ResourceInterface;

$object = new Resource('id');

if ($object instanceof ResourceInterface) {
   echo 'instance of ResourceInterface';
}
else {
   echo 'not an instance of ResourceInterface';
}

Phalcon version 2.0.13
Please correct me if I'm wrong.

@Jurigag
Copy link
Contributor

Jurigag commented Jul 7, 2016

@sergeyklay
Copy link
Contributor

Fixed in the 3.0.x branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants