Skip to content

Compile Error - Declaration of Nette\SmartObject::__call #315

@kropacekt

Description

@kropacekt

Version: 4.0.4

Bug Description

Compile Error: Declaration of Nette\SmartObject::__call(string $name, array $args) must be compatible with Nette\Forms\Controls\BaseControl::__call(string $name, array $args): mixed in /var/www/html/vendor/nette/utils/src/SmartObject.php:28

Steps To Reproduce

Install:

  • nette/utils v4.0.4
  • nette/forms v3.2.3

Possible Solution

I suggest adding the mixed type to \Nette\SmartObject::__call or removing it from \Nette\Forms\Controls\BaseControl::__call.

Please let me know which solution you prefer, and I will create a pull request. Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions