mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
N°2329 PHP 7.4 compat, AttributeDefinition : fix visibilities of members called by AttributeDefinition::__construct
Not enough to get rid of child classes constructors though :/
This commit is contained in:
@@ -155,8 +155,11 @@ abstract class AttributeDefinition
|
||||
return static::SEARCH_WIDGET_TYPE != static::SEARCH_WIDGET_TYPE_RAW;
|
||||
}
|
||||
|
||||
/** @var string */
|
||||
protected $m_sCode;
|
||||
private $m_aParams = array();
|
||||
/** @var array */
|
||||
protected $m_aParams;
|
||||
/** @var string */
|
||||
protected $m_sHostClass = '!undefined!';
|
||||
|
||||
public function Get($sParamName)
|
||||
@@ -264,11 +267,11 @@ abstract class AttributeDefinition
|
||||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
private function ConsistencyCheck()
|
||||
protected function ConsistencyCheck()
|
||||
{
|
||||
// Check that any mandatory param has been specified
|
||||
//
|
||||
$aExpectedParams = $this->ListExpectedParams();
|
||||
$aExpectedParams = static::ListExpectedParams();
|
||||
foreach($aExpectedParams as $sParamName)
|
||||
{
|
||||
if (!array_key_exists($sParamName, $this->m_aParams))
|
||||
|
||||
Reference in New Issue
Block a user