View Issue Details

IDProjectCategoryView StatusLast Update
0004926OXID ERP InterfaceOXID ERP Interface - subpublic2023-11-17 14:21
Reportermichael_keiluweit Assigned To 
PrioritynormalSeveritytrivialReproducibilityalways
Status assignedResolutionopen 
Product Version2.11.1_54476 
Summary0004926: maybe old php style by using class constants
DescriptionI saw this in the class oxERPBase:

abstract class oxERPBase
{
    static $ERROR_USER_WRONG = "ERROR: Could not login";
    static $ERROR_USER_NO_RIGHTS = "Not sufficient rights to perform operation!";


If I am right, we could use the "new" way:

abstract class oxERPBase
{
    const ERROR_USER_WRONG = "ERROR: Could not login";
    const ERROR_USER_NO_RIGHTS = "Not sufficient rights to perform operation!";
Additional Informationhttp://www.php.net/manual/en/language.oop5.constants.php
TagsSolution Provided

Activities

There are no notes attached to this issue.