-
Notifications
You must be signed in to change notification settings - Fork 68
Open
Description
Code to replicate this issue.
interface GlobalInterface
{
}
class GlobalImplementation implements GlobalInterface
{
}
interface GlobalRuleInterface
{
}
class GlobalRuleImplementation implements GlobalRuleInterface
{
}
class Global4
{
public $glb;
public $glbr;
public function __construct(GlobalInterface $glb, GlobalRuleInterface $glbr)
{
$this->glb = $glb;
$this->glbr = $glbr;
}
}
$glbRule = [
'substitutions' => ['GlobalRuleInterface' => 'GlobalRuleImplementation']
];
$glb4Rule = [
'substitutions' => ['GlobalInterface' => 'GlobalImplementation']
];
$dice = $dice->addRule('*', $glbRule);
$dice = $dice->addRule('Global4', $glb4Rule);
$obj = $dice->create('Global4');Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels