Inspectopedia
 
2024.3

Accessing static trait members

Info
New
Last modified: 03 December 2024

Reports the static member access expressions used on traits. Such direct access is deprecated starting from PHP 8.1. Instead, static members should be accessed on the class that uses the trait.

See Deprecations for PHP 8.1: Accessing static members on traits (php.net) for details.