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

Commit 5485934

Browse files
committed
Merge branch 'update_uct_errors_references' of github.com:eliseacornejo/devdocs into update_uct_errors_references
2 parents f70cfd3 + f924a42 commit 5485934

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

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

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ Custom code errors are raised when custom code is using the Adobe Commerce entry
9696
| - | - | - |
9797
| 5001 | Call-time pass-by-reference calls are prohibited | Passing by reference is not supported after PHP 5.6. |
9898
| 5002 | The opening PHP tag must be the first content in the file | Ensure there is no content in the file before the PHP opening tag. |
99-
| 5003 | Function has been deprecated | Please use a replacement suggested in the error message. If the message does not provide the replacement suggestion, this case requires a close review to select an alternative safe function or implementation. |
99+
| 5003 | Function has been deprecated | Use a replacement suggested in the error message. If the message does not provide the replacement suggestion, this case requires a close review to select an alternative safe function or implementation. |
100100
| 5005 | PHP syntax error | The code requires to be updated to comply with the PHP interpretation. |
101101
| 5006 | Proxies and interceptors MUST never be explicitly requested in constructors | The original class should be declared as a type of the constructor parameter, the Interceptor/Proxy class will be passed by the framework dependency injection implementation. |
102-
| 5007 | The use of certain functions is discouraged | Please avoid using these functions. |
102+
| 5007 | The use of certain functions is discouraged | Avoid using these functions. |
103103
| 5008 | Possible Magento 2 design violation. Detected typical Magento 1.x construction | The code requires review and refactoring. Magento 1 constructions may no longer be supported by Magento 2 framework. |
104104
| 5009 | Template directives may not invoke methods. Only scalar array access is allowed | Remove method invocations from the template. |
105105
| 5010 | Template `@vars` comment block contains invalid JSON | Fix invalid JSON. |
@@ -118,22 +118,22 @@ Custom code errors are raised when custom code is using the Adobe Commerce entry
118118
| 5023 | Obsolete ACL structure detected in line | Check lib/internal/Magento/Framework/Acl/etc/acl.xsd. |
119119
| 5024 | Obsolete menu structure detected in line | Check app/code/Magento/Backend/etc/menu.xsd. |
120120
| 5025 | Obsolete system configuration structure detected in file | Check app/code/Magento/Config/etc/system_file.xsd. |
121-
| 5026 | Please do not use `"text/javascript"` type attribute | Use only public members. |
121+
| 5026 | Do not use `"text/javascript"` type attribute | Use only public members. |
122122
| 5027 | Access to members and methods of Block class through $this is obsolete in phtml templates | Use only `$block` instead of `$this`. |
123123
| 5028 | Access to protected and private members of `Block` class is obsolete in phtml templates | Use only public members. |
124-
| 5029 | Please do not use `"jquery/ui"` library in templates | Use needed jquery ui widget instead. |
125-
| 5030 | Please do not initialize JS component in PHP | initialize JS component in template. |
126-
| 5031 | Contains obsolete method | Please use `getConnection()` method instead. |
127-
| 5032 | `loadLayout` method is deprecated | Please use `\Magento\Framework\View\Layout\Builder::build` instead. |
128-
| 5033 | `renderLayout` method is deprecated | Please use `\Magento\Framework\Controller\ResultInterface::renderResult` instead. |
129-
| 5034 | `_redirect` method is deprecated | Please use `\Magento\Backend\Model\View\Result\Redirect::render` instead. |
130-
| 5035 | `_forward` method is deprecated | Please use `\Magento\Backend\Model\View\Result\Forward::forward` instead. |
131-
| 5036 | `_setActiveMenu` method is deprecated | Please use `\Magento\Backend\Model\View\Result\Page::setActiveMenu` instead. |
132-
| 5037 | `_addBreadcrumb` method is deprecated | Please use `\Magento\Backend\Model\View\Result\Page::addBreadcrumb` instead. |
133-
| 5038 | `_addContent` method is deprecated | Please use `\Magento\Backend\Model\View\Result\Page::addContent` instead. |
134-
| 5039 | `_addLeft` method is deprecated | Please use `\Magento\Backend\Model\View\Result\Page::addLeft` instead. |
135-
| 5040 | `_addJs` method is deprecated | Please use `\Magento\Backend\Model\View\Result\Page::addJs` instead. |
136-
| 5041 | `_moveBlockToContainer` method is deprecated | Please use `\Magento\Backend\Model\View\Result\Page::moveBlockToContainer` instead. |
124+
| 5029 | Do not use `"jquery/ui"` library in templates | Use needed jquery ui widget instead. |
125+
| 5030 | Do not initialize JS component in PHP | initialize JS component in template. |
126+
| 5031 | Contains obsolete method | Use `getConnection()` method instead. |
127+
| 5032 | `loadLayout` method is deprecated | Use `\Magento\Framework\View\Layout\Builder::build` instead. |
128+
| 5033 | `renderLayout` method is deprecated | Use `\Magento\Framework\Controller\ResultInterface::renderResult` instead. |
129+
| 5034 | `_redirect` method is deprecated | Use `\Magento\Backend\Model\View\Result\Redirect::render` instead. |
130+
| 5035 | `_forward` method is deprecated | Use `\Magento\Backend\Model\View\Result\Forward::forward` instead. |
131+
| 5036 | `_setActiveMenu` method is deprecated | Use `\Magento\Backend\Model\View\Result\Page::setActiveMenu` instead. |
132+
| 5037 | `_addBreadcrumb` method is deprecated | Use `\Magento\Backend\Model\View\Result\Page::addBreadcrumb` instead. |
133+
| 5038 | `_addContent` method is deprecated | Use `\Magento\Backend\Model\View\Result\Page::addContent` instead. |
134+
| 5039 | `_addLeft` method is deprecated | Use `\Magento\Backend\Model\View\Result\Page::addLeft` instead. |
135+
| 5040 | `_addJs` method is deprecated | Use `\Magento\Backend\Model\View\Result\Page::addJs` instead. |
136+
| 5041 | `_moveBlockToContainer` method is deprecated | Use `\Magento\Backend\Model\View\Result\Page::moveBlockToContainer` instead. |
137137
| 5042 | Incorrect format of PHP class reference | Check that class is referenced using only camelCased letters, numbers and no leading slash. |
138138
| 5043 | Incorrect format of module reference | Check that module is referenced using only letters, numbers, underscores and no leading slash. |
139139
| 5044 | Class `Zend_Db_Select` is restricted | Suggested replacement: `\Magento\Framework\DB\Select`. |
@@ -148,15 +148,15 @@ Custom code errors are raised when custom code is using the Adobe Commerce entry
148148
| 5053 | Call of method via layout instruction `<action>` is not allowed | Avoid using offending method in <action>. |
149149
| 5054 | `helper` attribute contains `/` | Remove `/` from helper attribute. |
150150
| 5055 | `helper` attribute does not contain `::` | Add `::` to helper attribute. |
151-
| 5056 | Install scripts are obsolete | Please use declarative schema approach in module\'s etc/db_schema.xml file. |
152-
| 5057 | InstallSchema scripts are obsolete | Please use declarative schema approach in module\'s etc/db_schema.xml file. |
153-
| 5058 | InstallData scripts are obsolete | Please use data patches approach in module\'s Setup/Patch/Data dir. |
154-
| 5059 | Install scripts are obsolete | Please create class InstallData in module\'s Setup folder. |
155-
| 5060 | Upgrade scripts are obsolete | Please use declarative schema approach in module\'s etc/db_schema.xml file. |
156-
| 5061 | UpgradeSchema scripts are obsolete | Please use declarative schema approach in module\'s etc/db_schema.xml file. |
157-
| 5062 | UpgradeData scripts are obsolete | Please use data patches approach in module\'s Setup/Patch/Data dir. |
158-
| 5063 | Upgrade scripts are obsolete | Please use data patches approach in module\'s Setup/Patch/Data dir. |
159-
| 5064 | Recurring scripts are obsolete | Please create class Recurring in module\'s Setup folder. |
151+
| 5056 | Install scripts are obsolete | Use declarative schema approach in module\'s etc/db_schema.xml file. |
152+
| 5057 | InstallSchema scripts are obsolete | Use declarative schema approach in module\'s etc/db_schema.xml file. |
153+
| 5058 | InstallData scripts are obsolete | Use data patches approach in module\'s Setup/Patch/Data dir. |
154+
| 5059 | Install scripts are obsolete | Create a class InstallData in the module\'s Setup folder. |
155+
| 5060 | Upgrade scripts are obsolete | Use declarative schema approach in module\'s etc/db_schema.xml file. |
156+
| 5061 | UpgradeSchema scripts are obsolete | Use declarative schema approach in module\'s etc/db_schema.xml file. |
157+
| 5062 | UpgradeData scripts are obsolete | Use data patches approach in module\'s Setup/Patch/Data dir. |
158+
| 5063 | Upgrade scripts are obsolete | Use data patches approach in the module\'s Setup/Patch/Data dir. |
159+
| 5064 | Recurring scripts are obsolete | Create class Recurring in the module\'s Setup folder. |
160160
| 5065 | 'data' is in an invalid directory | Create a data patch within module's Setup/Patch/Data folder for data upgrades or use declarative schema approach in module's etc/db_schema.xml file for schema changes. |
161161
| 5066 | 'sql' is in an invalid directory | Create a data patch within module's Setup/Patch/Data folder for data upgrades or use declarative schema approach in module's etc/db_schema.xml file for schema changes. |
162162
| 5067 | Nodes identified by XPath are obsolete | Obsolete XML pointed out in the error should be updated. Follow the suggestions from the error message. |
@@ -176,7 +176,7 @@ Custom code errors are raised when custom code is using the Adobe Commerce entry
176176
| 5081 | The use of helpers in templates is discouraged | Use ViewModel instead. |
177177
| 5082 | The use of $this in templates is deprecated | Use $block instead. |
178178
| 5083 | Constants are not allowed as the first argument of translation function | Use string literal instead. |
179-
| 5084 | Please do not initialize JS component in php | Initialize JS component in a template. |
179+
| 5084 | Do not initialize JS component in php | Initialize JS component in a template. |
180180
| 5085 | The use of certain functions is discouraged | Use the alternative function advised on the message instead. |
181181
| 6001 | `jQuery.andSelf()` removed | Use `jQuery.addBack()`. |
182182
| 6002 | jQuery `$.bind` and `$.unbind` are deprecated | Use `$.on` and `$.off` instead. |

0 commit comments

Comments
 (0)