Skip to content

Commit

Permalink
Dev: PHPDoc fixes for Psalm and plugin dev
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Apr 17, 2018
1 parent efcd266 commit ec5ae2b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion application/helpers/common_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* @param string $sToTranslate
* @param string $sEscapeMode Valid values are html (this is the default, js and unescaped)
* @param string $sLanguage
* @return mixed|string
* @return string
*/
function gT($sToTranslate, $sEscapeMode = 'html', $sLanguage = null)
{
Expand All @@ -31,6 +31,7 @@ function gT($sToTranslate, $sEscapeMode = 'html', $sLanguage = null)
* Translation helper function which outputs right away.
* @param string $sToTranslate
* @param string $sEscapeMode
* @return void
*/
function eT($sToTranslate, $sEscapeMode = 'html')
{
Expand Down
3 changes: 2 additions & 1 deletion application/libraries/PluginManager/PluginBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,8 @@ protected function registerSetting($name, $options = array('type' => 'string'))

/**
*
* @param type $settings
* @param array<string, mixed> $settings
* @return void
*/
public function saveSettings($settings)
{
Expand Down
2 changes: 1 addition & 1 deletion application/libraries/PluginManager/PluginEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public function append($key, array $value)
/**
* Set content for $plugin, replacing any preexisting content
*
* @param string $plugin The plugin setting the context or a string name
* @param string|PluginBase $plugin The plugin setting the context or a string name
* @param string $content
* @param string $cssClass
* @param string $id
Expand Down
2 changes: 1 addition & 1 deletion application/libraries/PluginManager/iPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function getStore();
*
* Assumes an array with valid key/value pairs is passed.
*
* @param array $aSettings An array with key/value pairs for all plugin settings
* @param array<string, mixed> $aSettings An array with key/value pairs for all plugin settings
*/
public function saveSettings($aSettings);

Expand Down

0 comments on commit ec5ae2b

Please sign in to comment.