diff --git a/src/Element/AbstractElement.php b/src/Element/AbstractElement.php index 4d227ce..c39d15c 100644 --- a/src/Element/AbstractElement.php +++ b/src/Element/AbstractElement.php @@ -124,7 +124,7 @@ public function getId(): string } /** - * Get live arg by name + * Get live arg by name if exists * * @param string $name * @return mixed|null @@ -132,7 +132,7 @@ public function getId(): string public function getArgByName(string $name) { $args = $this->getArgs(); - return $args[$name]; + return $args[$name] ?? null; } /**