Skip to content

Commit 48fd2c1

Browse files
committed
Container, BaseControl: removed fallback to ObjectMixin
1 parent 7fbbd3b commit 48fd2c1

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

src/Forms/Container.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,9 +420,6 @@ public function __call(string $name, array $args)
420420
{
421421
if (isset(self::$extMethods[$name])) {
422422
return (self::$extMethods[$name])($this, ...$args);
423-
} elseif ($callback = Nette\Utils\ObjectMixin::getExtensionMethod($class = __CLASS__, $name)) {
424-
trigger_error("Define extension method '$name' via $class::extensionMethod('$name', ...), don't use Nette\\Object or Nette\\Utils\\ObjectMixin.", E_USER_DEPRECATED);
425-
return $callback($this, ...$args);
426423
}
427424
return parent::__call($name, $args);
428425
}

src/Forms/Controls/BaseControl.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -590,11 +590,6 @@ public function __call(string $name, array $args)
590590
}
591591
$class = get_parent_class($class);
592592
} while ($class);
593-
594-
if ($callback = Nette\Utils\ObjectMixin::getExtensionMethod($class = static::class, $name)) {
595-
trigger_error("Define extension method '$name' via $class::extensionMethod('$name', ...), don't use Nette\\Object or Nette\\Utils\\ObjectMixin.", E_USER_DEPRECATED);
596-
return $callback($this, ...$args);
597-
}
598593
return parent::__call($name, $args);
599594
}
600595

0 commit comments

Comments
 (0)