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.98k stars 147 forks source link

Compatibility of Nette/Utils with PHP 8.3.2 - warning is generated by StaticClass #307

Closed Marian-Kechlibar closed 9 months ago

Marian-Kechlibar commented 9 months ago

When running on PHP 8.3.2, classes that use the StaticClass trait will generate warnings:

Private methods cannot be final as they are never overridden by other classes

This appears to be caused by the private final constructor introduced when solving the following previous bug:

https://github.com/nette/di/issues/292

JanTvrdik commented 9 months ago

ref https://github.com/php/php-src/issues/13177

dg commented 9 months ago

fixed in v4.0.4