Skip to content

Commit 3e7f0eb

Browse files
Oleksandr Gorkunal.kravchuk
authored andcommitted
MAGETWO-89899: Proxy/Interceptor generator does not understand PHP 7.1 syntax
1 parent c0c0a37 commit 3e7f0eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/Magento/Framework/Interception/Code/Generator/Interceptor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@ protected function _getMethodInfo(\ReflectionMethod $method)
117117
],
118118
[
119119
$method->getName(),
120-
$returnTypeValue === 'void' ? '' : 'return',
120+
$returnTypeValue === 'void' ? '' : ' return',
121121
$this->_getParameterList($parameters)
122122
],
123-
<<<'METHOD_BODY'
123+
<<<'METHOD_BODY'
124124
$pluginInfo = $this->pluginList->getNext($this->subjectType, '%methodName%');
125125
if (!$pluginInfo) {
126126
%return% parent::%methodName%(%parameters%);

0 commit comments

Comments
 (0)