Skip to content

Commit

Permalink
Correct return types for CMS objects
Browse files Browse the repository at this point in the history
  • Loading branch information
bennothommo committed Jan 13, 2025
1 parent c9d559a commit 206e738
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/cms/classes/CmsObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public static function load($theme, $fileName)
* This method is used by the CMS in the runtime. If the cache is not found, it is created.
* @param \Cms\Classes\Theme $theme Specifies the theme the object belongs to.
* @param string $fileName Specifies the file name, with the extension.
* @return mixed Returns a CMS object instance or null if the object wasn't found.
* @return static|null Returns a CMS object instance or null if the object wasn't found.
*/
public static function loadCached($theme, $fileName)
{
Expand Down Expand Up @@ -185,7 +185,7 @@ public static function listInTheme($theme, $skipCache = false)
/**
* Prepares the theme datasource for the model.
* @param \Cms\Classes\Theme $theme Specifies a parent theme.
* @return $this
* @return static
*/
public static function inTheme($theme)
{
Expand Down

0 comments on commit 206e738

Please sign in to comment.