From 757c0195055155f62ae2070bb9d31d2f9f40258f Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Thu, 6 Jun 2024 16:19:43 +0200 Subject: [PATCH] [TASK] Update the QA tools Also reformat the code with the updated version of PHP-CS-Fixer. Also recreate the Psalm baseline with the additional warnings that get detected now. --- .phive/phars.xml | 4 ++-- psalm.baseline.xml | 11 ++++++++++- tests/Unit/CssInlinerTest.php | 12 ++++++------ 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/.phive/phars.xml b/.phive/phars.xml index 24f8d7a3..938f126f 100644 --- a/.phive/phars.xml +++ b/.phive/phars.xml @@ -1,7 +1,7 @@ - + - + diff --git a/psalm.baseline.xml b/psalm.baseline.xml index 88ef81dc..d39df584 100644 --- a/psalm.baseline.xml +++ b/psalm.baseline.xml @@ -1,5 +1,5 @@ - + @@ -23,9 +23,18 @@ + + + + + + + + + diff --git a/tests/Unit/CssInlinerTest.php b/tests/Unit/CssInlinerTest.php index eb183af5..2bfceaa0 100644 --- a/tests/Unit/CssInlinerTest.php +++ b/tests/Unit/CssInlinerTest.php @@ -1779,12 +1779,12 @@ public function orderedRulesAndSurroundingCssDataProvider(): array 'non-matching CSS with pseudo-component' => 'h6:hover { color: #f00; }', ]; $possibleCssBefore = $possibleSurroundingCss + [ - '@import' => '@import "foo.css";', - '@charset' => '@charset "UTF-8";', - 'invalid @charset (uppercase identifier)' => '@CHARSET "UTF-8";', - 'invalid @charset (extra space)' => '@charset "UTF-8";', - // broken: invalid @charset (unquoted value) - ]; + '@import' => '@import "foo.css";', + '@charset' => '@charset "UTF-8";', + 'invalid @charset (uppercase identifier)' => '@CHARSET "UTF-8";', + 'invalid @charset (extra space)' => '@charset "UTF-8";', + // broken: invalid @charset (unquoted value) + ]; /** @var array> $datasetsSurroundingCss */ $datasetsSurroundingCss = [];