Nette Utils 2.5 – deprecated Nette\Object
- David Grudl
- Nette Core | 8229
Nette Utils v2.5 triggers a deprecation notice when you use the
Nette\Object
or Nette\Utils\ObjectMixin
, ie. classes
that were already deprecated in v2.4. You can find out from error message where
these classes are used. And it suggests replacing Nette\Object
with
trait Nette\SmartObject
.
These classes are not compatible with PHP 7.2 (Object is reserved word in 7.2) and will be removed from Nette Utils v3.