We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91e1cf1 commit e0bdc36Copy full SHA for e0bdc36
lib/internal/Magento/Framework/DataObject.php
@@ -387,7 +387,8 @@ public function toString($format = '')
387
*/
388
public function __call($method, $args)
389
{
390
- switch ($method[0].($method[1] ?? '').($method[2] ?? '')) {
+ // Compare 3 first letters of the method name
391
+ switch ($method[0] . ($method[1] ?? '') . ($method[2] ?? '')) {
392
case 'get':
393
if (isset($args[0]) && $args[0] !== null) {
394
return $this->getData(
0 commit comments