Skip to content

Commit f366fef

Browse files
committed
Readability improvements / Accidentally moved declaration after use
1 parent efb6127 commit f366fef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/Interception/Code/InterfaceValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ public function validate($pluginClass, $interceptedType)
6666
);
6767
}
6868

69+
$pluginMethodParameters = $this->getMethodParameters($pluginMethod);
6970
$subject = array_shift($pluginMethodParameters);
7071
if ($subject['type'] === null
7172
|| !$this->_argumentsReader->isCompatibleType($subject['type'], $interceptedType)) {
@@ -79,7 +80,6 @@ public function validate($pluginClass, $interceptedType)
7980

8081
$originMethod = $type->getMethod($originMethodName);
8182
$originMethodParameters = $this->getMethodParameters($originMethod);
82-
$pluginMethodParameters = $this->getMethodParameters($pluginMethod);
8383
$methodType = $this->getMethodType($pluginMethod->getName());
8484

8585
if (self::METHOD_AFTER === $methodType && count($pluginMethodParameters) > 1) {

0 commit comments

Comments
 (0)