Skip to content

Commit

Permalink
Merge branch 'namespace--all' of https://github.com/C-Lodder/joomla-cms
Browse files Browse the repository at this point in the history
… into namespace--all
  • Loading branch information
C-Lodder committed Mar 13, 2019
2 parents 685a28e + 1c3e325 commit 98d3a1f
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public function getItem($langId = null)
}

$properties = $table->getProperties(1);
$value = ArrayHelper::toObject($properties, 'CMSObject');
$value = ArrayHelper::toObject($properties, CMSObject::class);

return $value;
}
Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_menus/Model/MenuModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function &getItem($itemId = null)
}

$properties = $table->getProperties(1);
$value = ArrayHelper::toObject($properties, 'CMSObject');
$value = ArrayHelper::toObject($properties, CMSObject::class);

return $value;
}
Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_modules/Model/ModuleModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ public function getItem($pk = null)

// Convert to the CMSObject before adding other data.
$properties = $table->getProperties(1);
$this->_cache[$pk] = ArrayHelper::toObject($properties, 'CMSObject');
$this->_cache[$pk] = ArrayHelper::toObject($properties, CMSObject::class);

// Convert the params field to an array.
$registry = new Registry($table->params);
Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_plugins/Model/PluginModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public function getItem($pk = null)

// Convert to the CMSObject before adding other data.
$properties = $table->getProperties(1);
$this->_cache[$pk] = ArrayHelper::toObject($properties, 'CMSObject');
$this->_cache[$pk] = ArrayHelper::toObject($properties, CMSObject::class);

// Convert the params field to an array.
$registry = new Registry($table->params);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ public function getItem($pk = null)

// Convert to the CMSObject before adding other data.
$properties = $table->getProperties(1);
$this->_cache[$pk] = ArrayHelper::toObject($properties, 'CMSObject');
$this->_cache[$pk] = ArrayHelper::toObject($properties, CMSObject::class);

// Convert the params field to an array.
$registry = new Registry($table->params);
Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_users/Model/GroupModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ protected function loadFormData()
*/
protected function preprocessForm(\JForm $form, $data, $group = '')
{
$obj = is_array($data) ? ArrayHelper::toObject($data, 'CMSObject') : $data;
$obj = is_array($data) ? ArrayHelper::toObject($data, CMSObject::class) : $data;

if (isset($obj->parent_id) && $obj->parent_id == 0 && $obj->id > 0)
{
Expand Down
2 changes: 1 addition & 1 deletion libraries/cms/html/behavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ protected static function calendartranslation()
$jsscript = 1;

// To keep the code simple here, run strings through Text::_() using array_map()
$callback = array('Text', '_');
$callback = array(Text::class, '_');
$weekdays_full = array_map(
$callback, array(
'SUNDAY', 'MONDAY', 'TUESDAY', 'WEDNESDAY', 'THURSDAY', 'FRIDAY', 'SATURDAY', 'SUNDAY',
Expand Down

0 comments on commit 98d3a1f

Please sign in to comment.