-
-
Notifications
You must be signed in to change notification settings - Fork 74
Closed
Description
Version: 3.0.3
Bug Description
Steps To Reproduce
Class Hoa\File\Read looks like this:
public function __construct(
$streamName,
$mode = parent::MODE_READ,
$context = null,
$wait = false
) {
parent::__construct($streamName, $mode, $context, $wait);
return;
}I try to register it like this:
regexParser:
class: Hoa\Compiler\Llk\Parser
factory: Hoa\Compiler\Llk\Llk::load(@regexGrammarStream)
regexGrammarStream:
class: Hoa\File\Read
arguments:
streamName: 'hoa://Library/Regex/Grammar.pp'
It crashes like this:
In Resolver.php line 397:
Service 'regexGrammarStream' (type of Hoa\File\Read): Unable to resolve constant parent::MODE_REA
D used as default value of $mode in __construct().
In Reflection.php line 88:
Unable to resolve constant parent::MODE_READ used as default value of $mode in Hoa\File\Read::__c
onstruct().
In Reflection.php line 85:
Class parent does not exist
Expected Behavior
Service is registered and ready to use.
Possible Solution
Correctly resolve special static class names like self, static, parent.
Metadata
Metadata
Assignees
Labels
No labels