Skip to content

Commit 206e738

Browse files
committed
Correct return types for CMS objects
1 parent c9d559a commit 206e738

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/cms/classes/CmsObject.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public static function load($theme, $fileName)
109109
* This method is used by the CMS in the runtime. If the cache is not found, it is created.
110110
* @param \Cms\Classes\Theme $theme Specifies the theme the object belongs to.
111111
* @param string $fileName Specifies the file name, with the extension.
112-
* @return mixed Returns a CMS object instance or null if the object wasn't found.
112+
* @return static|null Returns a CMS object instance or null if the object wasn't found.
113113
*/
114114
public static function loadCached($theme, $fileName)
115115
{
@@ -185,7 +185,7 @@ public static function listInTheme($theme, $skipCache = false)
185185
/**
186186
* Prepares the theme datasource for the model.
187187
* @param \Cms\Classes\Theme $theme Specifies a parent theme.
188-
* @return $this
188+
* @return static
189189
*/
190190
public static function inTheme($theme)
191191
{

0 commit comments

Comments
 (0)