-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Labels
Component: SetupIssue: Format is not validGate 1 Failed. Automatic verification of issue format is failedGate 1 Failed. Automatic verification of issue format is failedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentGate 4. Acknowledged. Issue is added to backlog and ready for developmentfeature request
Description
Steps to reproduce
I use Magento 2.0.5 on php 7.0.2 and try it use with anonymous classes. It's work correctly before i try to use production mode with di compile.
for example
public function getDebug()
{
return (new class($this->_loadOrder){
protected $loadOrder;
public function __construct($loadOrder)
{
$this->_loadOrder = $loadOrder;
}
public function getOrderStatus()
{
return $this->_loadOrder->getStatus();
}
});
}
And try to run follow command ./bin/magento setup:di:compile
i get error
[ReflectionException] Class \Rcklss\ShipWorks\Model\$this does not exist
Expected:
Code works same in developer and production mode and compiles without errors.
Actual
Error on compilation
AydinHassan
Metadata
Metadata
Assignees
Labels
Component: SetupIssue: Format is not validGate 1 Failed. Automatic verification of issue format is failedGate 1 Failed. Automatic verification of issue format is failedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentGate 4. Acknowledged. Issue is added to backlog and ready for developmentfeature request