From 87ced8c8bd2fb892a1a9a6f8656c9892d0153fc9 Mon Sep 17 00:00:00 2001 From: Daniel Rudolf Date: Tue, 1 Oct 2019 13:29:16 +0200 Subject: [PATCH] Improve phpDoc class docs --- lib/PicoTwigExtension.php | 4 ++++ plugins/DummyPlugin.php | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/PicoTwigExtension.php b/lib/PicoTwigExtension.php index 1c840f4..18fa5ca 100644 --- a/lib/PicoTwigExtension.php +++ b/lib/PicoTwigExtension.php @@ -130,6 +130,8 @@ class PicoTwigExtension extends Twig_Extension * $item['foo']['bar'] values) * * @return array mapped values + * + * @throws Twig_Error_Runtime */ public function mapFilter($var, $mapKeyPath) { @@ -170,6 +172,8 @@ class PicoTwigExtension extends Twig_Extension * these items * * @return array sorted array + * + * @throws Twig_Error_Runtime */ public function sortByFilter($var, $sortKeyPath, $fallback = 'bottom') { diff --git a/plugins/DummyPlugin.php b/plugins/DummyPlugin.php index 17225f4..b17d51c 100644 --- a/plugins/DummyPlugin.php +++ b/plugins/DummyPlugin.php @@ -119,7 +119,7 @@ class DummyPlugin extends AbstractPicoPlugin * @see Pico::loadTheme() * @see DummyPlugin::onThemeLoaded() * - * @param string $theme name of current theme + * @param string &$theme name of current theme */ public function onThemeLoading(&$theme) { @@ -135,7 +135,7 @@ class DummyPlugin extends AbstractPicoPlugin * * @param string $theme name of current theme * @param int $themeApiVersion API version of the theme - * @param array $themeConfig config array of the theme + * @param array &$themeConfig config array of the theme */ public function onThemeLoaded($theme, $themeApiVersion, array &$themeConfig) {