Add visibility to class constants (PHP >= 7.1)

This commit is contained in:
Molkobain
2020-08-26 19:02:53 +02:00
parent 8bdaec0129
commit b5c97e35bf
32 changed files with 154 additions and 151 deletions

View File

@@ -33,7 +33,7 @@ use JSPopupMenuItem;
class JsPopoverMenuItem extends PopoverMenuItem
{
// Overloaded constants
const HTML_TEMPLATE_REL_PATH = 'components/popover-menu/item/mode_js';
public const HTML_TEMPLATE_REL_PATH = 'components/popover-menu/item/mode_js';
/**
* @see \JSPopupMenuItem::GetJsCode()

View File

@@ -34,8 +34,8 @@ use Combodo\iTop\Application\UI\UIBlock;
class PopoverMenuItem extends UIBlock
{
// Overloaded constants
const BLOCK_CODE = 'ibo-popover-menu--item';
const HTML_TEMPLATE_REL_PATH = 'components/popover-menu/item/layout';
public const BLOCK_CODE = 'ibo-popover-menu--item';
public const HTML_TEMPLATE_REL_PATH = 'components/popover-menu/item/layout';
/** @var \ApplicationPopupMenuItem $oPopupMenuItem We decorate the class with the original \ApplicationPopupMenuItem as it is used among the application (backoffice, portal, extensions) and cannot be refactored without BC breaks */
protected $oPopupMenuItem;

View File

@@ -30,6 +30,6 @@ namespace Combodo\iTop\Application\UI\Component\PopoverMenu\PopoverMenuItem;
*/
class SeparatorPopoverMenuItem extends PopoverMenuItem
{
const HTML_TEMPLATE_REL_PATH = 'components/popover-menu/item/mode_separator';
public const HTML_TEMPLATE_REL_PATH = 'components/popover-menu/item/mode_separator';
}

View File

@@ -31,7 +31,7 @@ namespace Combodo\iTop\Application\UI\Component\PopoverMenu\PopoverMenuItem;
class UrlPopoverMenuItem extends PopoverMenuItem
{
// Overloaded constants
const HTML_TEMPLATE_REL_PATH = 'components/popover-menu/item/mode_url';
public const HTML_TEMPLATE_REL_PATH = 'components/popover-menu/item/mode_url';
/**
* @see \URLPopupMenuItem::GetUrl()