Skip to content

Commit

Permalink
Change item type to stdClass (joomla#42960)
Browse files Browse the repository at this point in the history
  • Loading branch information
laoneo authored Mar 27, 2024
1 parent 047b110 commit d0ba16f
Show file tree
Hide file tree
Showing 19 changed files with 21 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\View\GenericDataException;
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
use Joomla\CMS\Object\CMSObject;
use Joomla\CMS\Toolbar\Toolbar;
use Joomla\CMS\Toolbar\ToolbarHelper;
use Joomla\Component\Banners\Administrator\Model\ClientModel;
Expand All @@ -44,7 +43,7 @@ class HtmlView extends BaseHtmlView
/**
* The active item
*
* @var CMSObject
* @var \stdClass
* @since 1.5
*/
protected $item;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\View\GenericDataException;
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
use Joomla\CMS\Object\CMSObject;
use Joomla\CMS\Toolbar\Toolbar;
use Joomla\CMS\Toolbar\ToolbarHelper;
use Joomla\Filesystem\Path;
Expand All @@ -39,7 +38,7 @@ class HtmlView extends BaseHtmlView
protected $form;

/**
* @var CMSObject
* @var \stdClass
*
* @since 3.7.0
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\View\GenericDataException;
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
use Joomla\CMS\Object\CMSObject;
use Joomla\CMS\Toolbar\Toolbar;
use Joomla\CMS\Toolbar\ToolbarHelper;
use Joomla\Component\Fields\Administrator\Helper\FieldsHelper;
Expand All @@ -40,7 +39,7 @@ class HtmlView extends BaseHtmlView
protected $form;

/**
* @var CMSObject
* @var \stdClass
*
* @since 3.7.0
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\View\GenericDataException;
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
use Joomla\CMS\Object\CMSObject;
use Joomla\CMS\Toolbar\Toolbar;
use Joomla\CMS\Toolbar\ToolbarHelper;

Expand Down Expand Up @@ -51,7 +50,7 @@ class HtmlView extends BaseHtmlView
/**
* The active item
*
* @var CMSObject|boolean
* @var \stdClass
*
* @since 3.6.2
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class HtmlView extends BaseHtmlView
/**
* The active item
*
* @var object
* @var \stdClass
*/
protected $item;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class HtmlView extends BaseHtmlView
/**
* The active item
*
* @var CMSObject
* @var \stdClass
*/
protected $item;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\View\GenericDataException;
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
use Joomla\CMS\Object\CMSObject;
use Joomla\CMS\Toolbar\Toolbar;
use Joomla\CMS\Toolbar\ToolbarHelper;

Expand All @@ -42,7 +41,7 @@ class HtmlView extends BaseHtmlView
/**
* The active item
*
* @var CMSObject
* @var \stdClass
*/
protected $item;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\View\GenericDataException;
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
use Joomla\CMS\Object\CMSObject;
use Joomla\CMS\Toolbar\Button\DropdownButton;
use Joomla\CMS\Toolbar\Toolbar;
use Joomla\CMS\Toolbar\ToolbarHelper;
Expand All @@ -35,7 +34,7 @@ class HtmlView extends BaseHtmlView
/**
* The list of newsfeeds
*
* @var CMSObject
* @var array
*
* @since 1.6
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\View\GenericDataException;
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
use Joomla\CMS\Object\CMSObject;
use Joomla\CMS\Toolbar\Toolbar;
use Joomla\CMS\Toolbar\ToolbarHelper;

Expand All @@ -33,7 +32,7 @@ class HtmlView extends BaseHtmlView
/**
* The item object for the newsfeed
*
* @var CMSObject
* @var \stdClass
*/
protected $item;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\View\GenericDataException;
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
use Joomla\CMS\Object\CMSObject;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Session\Session;
use Joomla\CMS\Toolbar\Toolbar;
Expand Down Expand Up @@ -52,7 +51,7 @@ class HtmlView extends BaseHtmlView
/**
* The item record
*
* @var CMSObject
* @var \stdClass
* @since 3.9.0
*/
protected $item;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\View\GenericDataException;
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
use Joomla\CMS\Object\CMSObject;
use Joomla\CMS\Toolbar\Toolbar;
use Joomla\CMS\Toolbar\ToolbarHelper;

Expand All @@ -31,9 +30,9 @@
class HtmlView extends BaseHtmlView
{
/**
* The CMSObject (on success, false on failure)
* The item
*
* @var CMSObject
* @var \stdClass
*/
protected $item;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

use Joomla\CMS\Factory;
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
use Joomla\CMS\Object\CMSObject;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
Expand All @@ -26,9 +25,9 @@
class JsonView extends BaseHtmlView
{
/**
* The CMSObject (on success, false on failure)
* The item
*
* @var CMSObject
* @var \stdClass
*/
protected $item;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use Joomla\CMS\Factory;
use Joomla\CMS\MVC\Factory\MVCFactoryInterface;
use Joomla\CMS\MVC\Model\ListModel;
use Joomla\CMS\Object\CMSObject;
use Joomla\Component\Users\Administrator\Helper\DebugHelper;
use Joomla\Database\DatabaseQuery;
use Joomla\Database\ParameterType;
Expand Down Expand Up @@ -170,7 +169,7 @@ protected function getStoreId($id = '')
/**
* Get the group being debugged.
*
* @return CMSObject
* @return \stdClass
*
* @since 1.6
*/
Expand Down
2 changes: 1 addition & 1 deletion components/com_contact/src/Model/ContactModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ protected function loadFormData()
*
* @param integer $pk Id for the contact
*
* @return mixed Object or null
* @return mixed \stdClass or null
*
* @since 1.6.0
*/
Expand Down
2 changes: 1 addition & 1 deletion components/com_contact/src/View/Contact/HtmlView.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class HtmlView extends BaseHtmlView implements UserFactoryAwareInterface
/**
* The item object details
*
* @var \Joomla\CMS\Object\CMSObject
* @var \stdClass
*
* @since 1.6
*/
Expand Down
2 changes: 1 addition & 1 deletion components/com_contact/src/View/Contact/VcfView.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class VcfView extends AbstractView
/**
* The contact item
*
* @var \Joomla\CMS\Object\CMSObject
* @var \stdClass
*/
protected $item;

Expand Down
2 changes: 1 addition & 1 deletion components/com_contact/src/View/Featured/HtmlView.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class HtmlView extends BaseHtmlView
/**
* The item details
*
* @var \Joomla\CMS\Object\CMSObject
* @var array
*
* @since 1.6.0
*/
Expand Down
2 changes: 1 addition & 1 deletion components/com_tags/src/Model/TagModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class TagModel extends ListModel
/**
* Array of tags
*
* @var CMSObject[]
* @var array
* @since 4.3.0
*/
protected $item = [];
Expand Down
3 changes: 1 addition & 2 deletions components/com_tags/src/View/Tag/HtmlView.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
use Joomla\CMS\Menu\MenuItem;
use Joomla\CMS\MVC\View\GenericDataException;
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
use Joomla\CMS\Object\CMSObject;
use Joomla\CMS\Plugin\PluginHelper;
use Joomla\CMS\Router\Route;
use Joomla\CMS\User\User;
Expand Down Expand Up @@ -52,7 +51,7 @@ class HtmlView extends BaseHtmlView
/**
* Tag data for the current tag or tags (on success, false on failure)
*
* @var CMSObject[]|boolean
* @var array
*
* @since 3.1
*/
Expand Down

0 comments on commit d0ba16f

Please sign in to comment.