Skip to content

Commit

Permalink
phpstan: level 1 checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
justlevine committed Nov 2, 2024
1 parent 739cc50 commit a88b15a
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions tools/phpstan/baseline/level-1.php
Original file line number Diff line number Diff line change
@@ -1,48 +1,12 @@
<?php declare(strict_types = 1);

$ignoreErrors = [];
$ignoreErrors[] = [
// identifier: arguments.count
'message' => '#^Function remove_filter invoked with 4 parameters, 2\\-3 required\\.$#',
'count' => 4,
'path' => __DIR__ . '/../../../lib/block-supports/elements.php',
];
$ignoreErrors[] = [
// identifier: arguments.count
'message' => '#^Function remove_filter invoked with 4 parameters, 2\\-3 required\\.$#',
'count' => 3,
'path' => __DIR__ . '/../../../lib/block-supports/layout.php',
];
$ignoreErrors[] = [
// identifier: arguments.count
'message' => '#^Function remove_filter invoked with 4 parameters, 2\\-3 required\\.$#',
'count' => 2,
'path' => __DIR__ . '/../../../lib/block-supports/settings.php',
];
$ignoreErrors[] = [
// identifier: variable.undefined
'message' => '#^Variable \\$filter_id might not be defined\\.$#',
'count' => 1,
'path' => __DIR__ . '/../../../lib/class-wp-duotone-gutenberg.php',
];
$ignoreErrors[] = [
// identifier: isset.variable
'message' => '#^Variable \\$area in isset\\(\\) always exists and is not nullable\\.$#',
'count' => 1,
'path' => __DIR__ . '/../../../lib/compat/wordpress-6.6/block-template-utils.php',
];
$ignoreErrors[] = [
// identifier: arguments.count
'message' => '#^Class WP_Webfonts constructor invoked with 1 parameter, 0 required\\.$#',
'count' => 1,
'path' => __DIR__ . '/../../../lib/experimental/font-face/bc-layer/webfonts-deprecations.php',
];
$ignoreErrors[] = [
// identifier: arguments.count
'message' => '#^Function gutenberg_url invoked with 2 parameters, 1 required\\.$#',
'count' => 1,
'path' => __DIR__ . '/../../../lib/experimental/posts/load.php',
];
$ignoreErrors[] = [
// identifier: variable.undefined
'message' => '#^Variable \\$cache_key might not be defined\\.$#',
Expand Down

0 comments on commit a88b15a

Please sign in to comment.