Inspectopedia
 
2024.3

Incorrect inclusion call

Error
New
Last modified: 03 December 2024

Reports inclusion calls (include, prepend and extend) that reference a class. Inclusion calls are only allowed to reference modules or interfaces.

A quick fix is available to remove the incorrect inclusion call.

Example:

After the quick fix: