diff --git a/.github/dependabot.yml b/.github/dependabot.yml index ca574e58..4f6aacc9 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -16,6 +16,11 @@ updates: interval: "daily" allow: - dependency-type: "development" + ignore: + - dependency-name: "phpstan/*" + - dependency-name: "phpunit/phpunit" + versions: [ ">= 9.0.0" ] + - dependency-name: "rector/rector" versioning-strategy: "increase" commit-message: prefix: "[Dependabot] " diff --git a/composer.json b/composer.json index 5195e086..0cec10c8 100644 --- a/composer.json +++ b/composer.json @@ -29,10 +29,10 @@ "require-dev": { "php-parallel-lint/php-parallel-lint": "1.4.0", "phpstan/extension-installer": "1.4.3", - "phpstan/phpstan": "1.12.9", - "phpstan/phpstan-phpunit": "1.4.0", + "phpstan/phpstan": "1.12.12 || 2.0.3", + "phpstan/phpstan-phpunit": "1.4.1 || 2.0.1", "phpunit/phpunit": "8.5.40", - "rector/rector": "1.2.10" + "rector/rector": "1.2.10 || 2.0.0" }, "suggest": { "ext-mbstring": "for parsing UTF-8 CSS" diff --git a/config/phpstan-baseline.neon b/config/phpstan-baseline.neon index 82fcb3f4..a01c9a6c 100644 --- a/config/phpstan-baseline.neon +++ b/config/phpstan-baseline.neon @@ -1,12 +1,20 @@ parameters: ignoreErrors: - - message: "#^Call to an undefined method Sabberworm\\\\CSS\\\\OutputFormat\\:\\:setIndentation\\(\\)\\.$#" + message: '#^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:setIndentation\(\)\.$#' + identifier: method.notFound count: 2 path: ../src/OutputFormat.php - - message: "#^Class Sabberworm\\\\CSS\\\\Value\\\\Size constructor invoked with 5 parameters, 1\\-4 required\\.$#" + message: '#^Class Sabberworm\\CSS\\Value\\Size constructor invoked with 5 parameters, 1\-4 required\.$#' + identifier: arguments.count count: 2 path: ../src/RuleSet/DeclarationBlock.php + - + message: '#^@covers value \\Sabberworm\\CSS\\Value\\Value\:\:parseValue\(\) references an invalid method\.$#' + identifier: phpunit.coversMethod + count: 2 + path: ../tests/ParserTest.php +