Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 22920d3

Browse files
authored
Merge pull request #2706 from eliseacornejo/add_rector_errors
Add rector error messages
2 parents 4f69651 + f860695 commit 22920d3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/_includes/upgrade/uct-error-reference.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Critical errors are raised when the custom code is referencing entities that are
1919
{:.error-table}
2020
| Error code | Error description | Suggested action |
2121
| - | - | - |
22-
| 1110 | Instantiating non-existent Adobe Commerce class/interface | Update code to use a class marked as `@api`. Instantiating non-existent Adobe Commerce class/interface |
22+
| 1110 | Instantiating non-existent Adobe Commerce class/interface | Update code to use a class marked as `@api`. Instantiating non-existent Adobe Commerce class/interface. |
2323
| 1111 | Extending from non-existent Adobe Commerce class | The 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`. |
2424
| 1112 | Importing non-existent Adobe Commerce class | Update code to use a class marked as `@api`. |
2525
| 1113 | Loading non-existent Adobe Commerce class | Update code to use a class marked as `@api`. |
@@ -172,6 +172,11 @@ Custom code errors are raised when custom code is using the Adobe Commerce entry
172172
| 5084 | Do not initialize JS component in php | Initialize JS component in a template. |
173173
| 5085 | The use of certain functions is discouraged | Use the alternative function advised on the message instead. |
174174
| 5087 | PHP cross-version compatibility issue | Follow the suggestions from the message and check the [migration guide](https://www.php.net/manual/en/migration81.php). |
175+
| 5088 | Optional parameters found after required ones | Move required parameters after optional ones. |
176+
| 5089 | Method visibility `final private` found | Change method visibility from `final private` to only `private`. |
177+
| 5090 | Magic method `__set_state` is not defined as `static` | Magic method `__set_state` must be defined as `static`. |
178+
| 5091 | Class with `__toString()` method not inheriting from `Stringable` interface | Add `Stringable` interface to class with `__toString()` method. |
179+
| 5092 | `is_resource()` method used for functions that now return Object | Change `is_resource()` to `instanceof` Object. |
175180
| 6001 | `jQuery.andSelf()` removed | Use `jQuery.addBack()`. |
176181
| 6002 | jQuery `$.bind` and `$.unbind` are deprecated | Use `$.on` and `$.off` instead. |
177182
| 6003 | jQuery method to subscribe to event is deprecated and shouldn't be used | Use `.on("event name", fn)` method instead to subscribe to that event. |

0 commit comments

Comments
 (0)