Skip to content

Commit

Permalink
Merge branch 'release/0.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jazz-Man committed Nov 20, 2022
2 parents e47a88a + 377a9e7 commit a9f1a8d
Show file tree
Hide file tree
Showing 11 changed files with 197 additions and 209 deletions.
13 changes: 6 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"php": "^7.4|^8.1",
"composer/installers": "^1|^2",
"jazzman/autoload-interface": "^0.3.1",
"jazzman/singleton-trait": "^1.1",
"jazzman/wp-app-config": "^2.3",
"jazzman/wp-db-pdo": "^0.1.4"
},
Expand All @@ -50,14 +51,12 @@
},
"description": "",
"require-dev": {
"jazzman/php-cs-fixer-rules": "^0.1.2",
"phpmd/phpmd": "@stable",
"phpstan/extension-installer": "^1.1",
"rector/rector": "^0.14.5",
"jazzman/php-cs-fixer-rules": "^0.1.3",
"phpstan/extension-installer": "^1.2",
"rector/rector": "^0.14.8",
"roave/security-advisories": "@dev",
"roots/wordpress": "^6.0",
"szepeviktor/phpstan-wordpress": "^1.1",
"vimeo/psalm": "^4.27"
"roots/wordpress": "^6.1",
"szepeviktor/phpstan-wordpress": "^1.1"
},
"scripts": {
"rm-cache" : [
Expand Down
5 changes: 5 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
parameters:
ignoreErrors:
-
message: "#^Method JazzMan\\\\WpNavMenuCache\\\\MenuItems\\:\\:setMenuClasses\\(\\) should return array\\<string\\> but returns mixed\\.$#"
count: 1
path: src/MenuItems.php

-
message: "#^Parameter \\#2 \\$fetch_argument of method PDOStatement\\:\\:fetchAll\\(\\) expects \\(callable\\(\\)\\: mixed\\)\\|int\\|string, array given\\.$#"
count: 1
Expand Down
2 changes: 1 addition & 1 deletion psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.27.0@faf106e717c37b8c81721845dba9de3d8deed8ff"/>
<files psalm-version="4.x-dev@"/>
3 changes: 2 additions & 1 deletion rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,16 @@
$config->cacheDirectory(__DIR__.'/cache/rector');

$config->paths([
__DIR__,
__DIR__.'/src',
__DIR__.'/wp-performance.php',
]);

$config->skip(
[
// or fnmatch
__DIR__.'/vendor',
__DIR__.'/cache',
__DIR__.'/rector.php',
CallableThisArrayToAnonymousFunctionRector::class,
ClassConstantToSelfClassRector::class,
RemoveExtraParametersRector::class,
Expand Down
Loading

0 comments on commit a9f1a8d

Please sign in to comment.