Custom code

Critical errors are raised when the custom code is referencing entities that are not present in the target Adobe Commerce version. These errors are also reported when critical coding standards have been broken.

Error codeError descriptionSuggested action
1110Instantiating non-existent Adobe Commerce class/interfaceUpdate code to use a class marked as @api. Instantiating non-existent Adobe Commerce class/interface.
1111Extending from non-existent Adobe Commerce classThe extended class is no longer present in the codebase. Inheritance is not recommended way of extending Adobe Commerce functionality. Update code to use a class marked as @api.
1112Importing non-existent Adobe Commerce classUpdate code to use a class marked as @api.
1113Loading non-existent Adobe Commerce classUpdate code to use a class marked as @api.
1114Using non-existent Adobe Commerce classUpdate code to use a class marked as @api.
1214Using non-existent Adobe Commerce constantConsider introducing and using a private constant of the required value within the custom code instead.
1215Overriding non-existent Adobe Commerce constantConsider introducing and using a private constant of the required value within the custom code instead.
1216Assignation of non-existent Adobe Commerce constantConsider introducing and using a private constant of the required value within the custom code instead.
1312Imported non-existent Adobe Commerce interfaceConsider removing the inheritance or replacing it with the interface introduced in the scope of the customization.
1314Used non-existent Adobe Commerce interfaceConsider removing the inheritance or replacing it with the interface introduced in the scope of the customization.
1317Inherited non-existent Adobe Commerce interfaceConsider removing the inheritance or replacing it with the interface introduced in the scope of the customization.
1318Implemented non-existent Adobe Commerce interfaceConsider removing the inheritance or replacing it with the interface introduced in the scope of the customization.
1410Call non-existent Adobe Commerce methodUpdate code to use a class marked as @api.
1514Using non-existent Adobe Commerce propertyUpdate code to use a class marked as @api.
1515Overriding non-existent Adobe Commerce propertyUpdate code to use a class marked as @api.
1516Assignation of non-existent Adobe Commerce propertyUpdate code to use a class marked as @api. Update the property access level to private if it can be used within a single class only.
5002The opening PHP tag must be the first content in the fileEnsure there is no content in the file before the PHP opening tag.
5003Function has been deprecatedUse a replacement suggested in the error message. If the message does not suggest a replacement, a close review is needed to select an alternative function or implementation.
5005PHP syntax errorThe code must be updated to comply with the PHP syntax standards.
5072Possible Magento 2 design violation. Detected a typical Magento 1.x constructionUpdate construction to Magento 2 standards.
5076Cannot use in namespace as it is reserved since PHP 7Replace the reserved word in the namespace with a non-reserved keyword.
5077Cannot use as class name as it is reserved since PHP 7Replace the reserved class name with a non-reserved name.