Skip to content

Commit f286a98

Browse files
committed
Test stabilization.
1 parent 208b1ec commit f286a98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/Api/ExtensionAttributesFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function create($extensibleClassName, $data = [])
4949
$interfaceReflection = new \ReflectionClass($this->getExtensibleInterfaceName($extensibleClassName));
5050

5151
$methodReflection = $interfaceReflection->getMethod('getExtensionAttributes');
52-
if ($methodReflection->getDeclaringClass() == self::EXTENSIBLE_INTERFACE_NAME) {
52+
if ($methodReflection->getDeclaringClass()->getName() === self::EXTENSIBLE_INTERFACE_NAME) {
5353
throw new \LogicException(
5454
"Method 'getExtensionAttributes' must be overridden in the interfaces "
5555
. "which extend '" . self::EXTENSIBLE_INTERFACE_NAME . "'. "

0 commit comments

Comments
 (0)