From 85dae26c298a9439e77141ab01bc3642e5a5687a Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Fri, 8 Jun 2018 13:32:33 +0300 Subject: [PATCH] Scrutinizer fixes (also test that CI triggers work) --- src/BBCodeParser.php | 6 ++++++ tests/BBCodeParserTest.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/BBCodeParser.php b/src/BBCodeParser.php index 60f405d..f2652a0 100644 --- a/src/BBCodeParser.php +++ b/src/BBCodeParser.php @@ -6,6 +6,9 @@ class BBCodeParser { use ArrayTrait; + /** + * @var array[] These are our BBCode parsers + */ public $parsers = [ 'bold' => [ 'pattern' => '/\[b\](.*?)\[\/b\]/s', @@ -114,6 +117,9 @@ class BBCodeParser ] ]; + /** + * @var array[] Our enabled parsers available with getParsers() + */ private $enabledParsers; public function __construct() diff --git a/tests/BBCodeParserTest.php b/tests/BBCodeParserTest.php index 590c861..fd5098b 100644 --- a/tests/BBCodeParserTest.php +++ b/tests/BBCodeParserTest.php @@ -14,7 +14,7 @@ class BBCodeParserTest extends TestCase /** * @see \ivuorinen\BBCode\BBCodeParser::$parsers - * @var array Easier to maintain basic tests + * @var array[] Easier to maintain basic tests */ public $testedParsers = array( 'bold' => array(