diff --git a/composer.json b/composer.json index e834a3b..fe00237 100644 --- a/composer.json +++ b/composer.json @@ -14,6 +14,7 @@ "require-dev": { "phan/phan": "^5.4", "phpunit/phpunit": "^9.5", + "phpstan/phpstan": "^1.8", "symfony/var-dumper": "^5.4", "unleashedtech/php-coding-standard": "^3.1" }, @@ -40,7 +41,8 @@ "@phpcs", "@phpunit", "@php examples/basic.php", - "phan" + "phan", + "phpstan analyse --level=8 src/ tests/" ] } } diff --git a/src/Shortcode.php b/src/Shortcode.php index 49b842c..9736cc3 100644 --- a/src/Shortcode.php +++ b/src/Shortcode.php @@ -30,7 +30,11 @@ public function getName(): string public function loadAttrsFromString(string $string): void { - $parts = \preg_split('/(?