nette / utils

🛠 Lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.
https://doc.nette.org/utils
Other
1.96k stars 147 forks source link

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

Closed kropacekt closed 1 month ago

kropacekt commented 2 months ago

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:

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.

mabar commented 2 months ago

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

dg commented 2 months ago

Forms 3.0 are unsupported long time

kropacekt commented 2 months ago

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 commented 1 month ago

@dg Now you can see?

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