MIR1601
UndefinedAttributeClass
An attribute syntax #[ClassName] references a class that cannot be found in the project or
its dependencies. This will produce a fatal error when PHP attempts to resolve the attribute at
runtime.
Example
Section titled “Example”<?php#[NonExistentAttribute] // class NonExistentAttribute not foundclass MyClass {}How to fix
Section titled “How to fix”Ensure the attribute class is defined and autoloaded, or add the correct use import for a
namespaced attribute class.