mirror of
https://github.com/joomla/joomla-cms.git
synced 2024-06-25 14:53:01 +00:00
Return value type is not compatible with declared (#36412)
This commit is contained in:
parent
73454c1f02
commit
accbe4ef12
|
@ -75,7 +75,7 @@ class HtmlView extends BaseHtmlView
|
|||
{
|
||||
Factory::getApplication()->enqueueMessage($e->getMessage(), 'error');
|
||||
|
||||
return false;
|
||||
return;
|
||||
}
|
||||
|
||||
// Bind data
|
||||
|
|
|
@ -394,7 +394,7 @@ final class InstallationApplication extends CMSApplication
|
|||
*
|
||||
* @param boolean $params True to return the template parameters
|
||||
*
|
||||
* @return string The name of the template.
|
||||
* @return string|\stdClass The name of the template.
|
||||
*
|
||||
* @since 3.1
|
||||
*/
|
||||
|
|
|
@ -191,7 +191,7 @@ final class ApiApplication extends CMSApplication
|
|||
*
|
||||
* @param boolean $params True to return the template parameters
|
||||
*
|
||||
* @return string
|
||||
* @return string|\stdClass
|
||||
*
|
||||
* @since 4.0.0
|
||||
*/
|
||||
|
|
|
@ -181,7 +181,7 @@ abstract class AssociationExtensionHelper implements AssociationExtensionInterf
|
|||
*
|
||||
* @param string $typeName The item type
|
||||
*
|
||||
* @return array Array of support information
|
||||
* @return string The type title
|
||||
*
|
||||
* @since 3.7.0
|
||||
*/
|
||||
|
|
|
@ -595,18 +595,18 @@ class Cache
|
|||
* @param string $data Cached data
|
||||
* @param array $options Array of options
|
||||
*
|
||||
* @return string Data to be cached
|
||||
* @return array
|
||||
*
|
||||
* @since 1.7.0
|
||||
*/
|
||||
public static function setWorkarounds($data, $options = array())
|
||||
public static function setWorkarounds($data, $options = [])
|
||||
{
|
||||
$loptions = array(
|
||||
$loptions = [
|
||||
'nopathway' => 0,
|
||||
'nohead' => 0,
|
||||
'nomodules' => 0,
|
||||
'modulemode' => 0,
|
||||
);
|
||||
];
|
||||
|
||||
if (isset($options['nopathway']))
|
||||
{
|
||||
|
@ -638,13 +638,13 @@ class Cache
|
|||
|
||||
if (!\is_array($buffer1))
|
||||
{
|
||||
$buffer1 = array();
|
||||
$buffer1 = [];
|
||||
}
|
||||
|
||||
// Make sure the module buffer is an array.
|
||||
if (!isset($buffer1['module']) || !\is_array($buffer1['module']))
|
||||
{
|
||||
$buffer1['module'] = array();
|
||||
$buffer1['module'] = [];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -665,7 +665,7 @@ class Cache
|
|||
unset($options['headerbefore'][$un]);
|
||||
}
|
||||
|
||||
$cached['head'] = array();
|
||||
$cached['head'] = [];
|
||||
|
||||
// Only store what this module has added
|
||||
foreach ($headnow as $now => $value)
|
||||
|
@ -731,13 +731,13 @@ class Cache
|
|||
|
||||
if (!\is_array($buffer2))
|
||||
{
|
||||
$buffer2 = array();
|
||||
$buffer2 = [];
|
||||
}
|
||||
|
||||
// Make sure the module buffer is an array.
|
||||
if (!isset($buffer2['module']) || !\is_array($buffer2['module']))
|
||||
{
|
||||
$buffer2['module'] = array();
|
||||
$buffer2['module'] = [];
|
||||
}
|
||||
|
||||
// Compare the second module buffer against the first buffer.
|
||||
|
|
|
@ -156,7 +156,7 @@ class Changelog extends CMSObject
|
|||
/**
|
||||
* Gets the reference to the current direct parent
|
||||
*
|
||||
* @return object
|
||||
* @return string
|
||||
*
|
||||
* @since 4.0.0
|
||||
*/
|
||||
|
|
|
@ -665,13 +665,13 @@ class LanguageAdapter extends InstallerAdapter
|
|||
* Custom discover method
|
||||
* Finds language files
|
||||
*
|
||||
* @return boolean True on success
|
||||
* @return \Joomla\CMS\Table\Extension[] Array of discovered extensions.
|
||||
*
|
||||
* @since 3.1
|
||||
*/
|
||||
public function discover()
|
||||
{
|
||||
$results = array();
|
||||
$results = [];
|
||||
$clients = [0 => JPATH_SITE, 1 => JPATH_ADMINISTRATOR, 3 => JPATH_API];
|
||||
|
||||
foreach ($clients as $clientId => $basePath)
|
||||
|
|
|
@ -35,7 +35,7 @@ class PlgButtonArticle extends CMSPlugin
|
|||
*
|
||||
* @param string $name The name of the button to add
|
||||
*
|
||||
* @return CMSObject The button options as JObject
|
||||
* @return CMSObject|void The button options as JObject, void if ACL check fails.
|
||||
*
|
||||
* @since 1.5
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue
Block a user