utils icon indicating copy to clipboard operation
utils copied to clipboard

Compile Error - Declaration of Nette\SmartObject::__call

Open kropacekt opened this issue 1 year ago • 3 comments

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.

kropacekt avatar Jun 21 '24 07:06 kropacekt

Related issue (cz only) - https://forum.nette.org/cs/36492-compile-error-smartobject

mabar avatar Jun 21 '24 07:06 mabar

Forms 3.0 are unsupported long time

dg avatar Jun 21 '24 17:06 dg

Forms 3.0 are unsupported long time

Sorry, I mentioned the wrong version. This error occurs in the latest version of nette/forms 3.2.3.

kropacekt avatar Jun 24 '24 05:06 kropacekt

@dg Now you can see?

Please let me know how can I help fix this error, thanks.

kropacekt avatar Jul 11 '24 05:07 kropacekt

Hi @dg and thanks a lot for fixing this.

Would it be possible to release a new tag that includes this fix?

Thanks in advance!

kropacekt avatar Oct 07 '24 13:10 kropacekt