Skip to content

Commit

Permalink
removed return type from __call() [Closes nette/utils#315]
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Aug 7, 2024
1 parent 555cef4 commit b030a60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Forms/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ public function addContainer(string|int $name): self
/********************* extension methods ****************d*g**/


public function __call(string $name, array $args): mixed
public function __call(string $name, array $args)
{
if (isset(self::$extMethods[$name])) {
return (self::$extMethods[$name])($this, ...$args);
Expand Down
2 changes: 1 addition & 1 deletion src/Forms/Controls/BaseControl.php
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ public function getOptions(): array
/********************* extension methods ****************d*g**/


public function __call(string $name, array $args): mixed
public function __call(string $name, array $args)
{
$class = static::class;
do {
Expand Down

0 comments on commit b030a60

Please sign in to comment.