From bab96b958de4c25f87cd868bc679d2ae0d4676ec Mon Sep 17 00:00:00 2001 From: Kevin Pfeifer Date: Sun, 21 Jan 2024 17:36:40 +0100 Subject: [PATCH] stan update --- .phive/phars.xml | 4 +-- psalm-baseline.xml | 40 ------------------------- psalm.xml | 4 ++- src/Twig/Extension/StringsExtension.php | 3 +- 4 files changed, 6 insertions(+), 45 deletions(-) delete mode 100644 psalm-baseline.xml diff --git a/.phive/phars.xml b/.phive/phars.xml index b3c9592..1f56b2b 100644 --- a/.phive/phars.xml +++ b/.phive/phars.xml @@ -1,5 +1,5 @@ - - + + diff --git a/psalm-baseline.xml b/psalm-baseline.xml deleted file mode 100644 index 10dec88..0000000 --- a/psalm-baseline.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - new CellNode($assign, $variable, $name, $data, $options, $token->getLine(), $this->getTag()) - - - IncludeTokenParser - - - parseExpression - parseExpression - parseExpression - - - - - new ElementNode($name, $data, $options, $token->getLine(), $this->getTag()) - - - IncludeTokenParser - - - parseExpression - parseExpression - parseExpression - - - - - parseExpression - - - - - new TokenParser\CellParser() - new TokenParser\ElementParser() - - - diff --git a/psalm.xml b/psalm.xml index 42e912e..3b80c9b 100644 --- a/psalm.xml +++ b/psalm.xml @@ -5,8 +5,10 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://getpsalm.org/schema/config" xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd" - errorBaseline="psalm-baseline.xml" autoloader="tests/bootstrap.php" + findUnusedPsalmSuppress="true" + findUnusedBaselineEntry="true" + findUnusedCode="false" > diff --git a/src/Twig/Extension/StringsExtension.php b/src/Twig/Extension/StringsExtension.php index f7ba485..f5d74c8 100644 --- a/src/Twig/Extension/StringsExtension.php +++ b/src/Twig/Extension/StringsExtension.php @@ -51,8 +51,7 @@ public function getFilters(): array new TwigFilter('utf8', 'Cake\Utility\Text::utf8'), new TwigFilter('ascii', 'Cake\Utility\Text::ascii'), new TwigFilter('parseFileSize', 'Cake\Utility\Text::parseFileSize'), - new TwigFilter('none', function ($string): void { - return; + new TwigFilter('none', function (): void { }), ]; }