Skip to content

Commit

Permalink
Updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
PHLAK committed Dec 11, 2024
1 parent 860811f commit 2c58df6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"friendsofphp/php-cs-fixer": "^3.0"
},
"require-dev": {
"phpstan/phpstan": "^1.4",
"phpstan/phpstan": "^2.0",
"symfony/var-dumper": "^7.0",
"yoast/phpunit-polyfills": "^3.0"
},
Expand Down
3 changes: 2 additions & 1 deletion phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
parameters:
ignoreErrors:
-
message: "#^Method PHLAK\\\\CodingStandards\\\\ConfigFactory\\:\\:make\\(\\) has parameter \\$rules with no value type specified in iterable type array\\.$#"
message: '#^Parameter \#1 \$rules of method PhpCsFixer\\ConfigInterface\:\:setRules\(\) expects array\<string, array\<string, mixed\>\|bool\>, array given\.$#'
identifier: argument.type
count: 1
path: src/ConfigFactory.php

6 changes: 5 additions & 1 deletion src/ConfigFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@

class ConfigFactory
{
/** Create a PHP CS Fixer Config object. */
/**
* Create a PHP CS Fixer Config object.
*
* @param array<string, mixed> $rules
*/
public static function make(Finder $finder, array $rules = []): ConfigInterface
{
return (new Config)->setFinder($finder)->setRules(
Expand Down

0 comments on commit 2c58df6

Please sign in to comment.