Bug #33145

Annotation parser for interfaces gets confused

Added by Christof Rodejohann over 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Must have
Category:
Object
Start date:
2012-01-12
Due date:
% Done:

0%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

Description

With the following constellation

Example.php
containing the class Example with a scope singleton

and

ExampleInterface.php
containing the interface ExampleInterface which is not implemented in the class Example.

in the same directory, the interface annotation parser will throw the following exception:

"Scope annotations in interfaces don't have any effect, therefore you better remove it from My\Package\ExampleInterface in order to avoid confusion." (Exception code #1299095595)

Removing the scope from Example solves the exception in ExampleInterface.

Also available in: Atom PDF