Skip to content

Commit 2ea3189

Browse files
committed
[PHPStan]: regenerate baselines
1 parent 317a0ed commit 2ea3189

7 files changed

Lines changed: 3068 additions & 2372 deletions

File tree

tests/phpstan/baseline/level-0.php

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,50 +2,56 @@
22

33
$ignoreErrors = [];
44
$ignoreErrors[] = [
5-
// identifier: return.missing
65
'message' => '#^Method WP_Filesystem_SSH2\\:\\:touch\\(\\) should return bool but return statement is missing\\.$#',
6+
'identifier' => 'return.missing',
77
'count' => 1,
88
'path' => __DIR__ . '/../../../src/wp-admin/includes/class-wp-filesystem-ssh2.php',
99
];
1010
$ignoreErrors[] = [
11-
// identifier: class.notFound
1211
'message' => '#^Instantiated class WP_Press_This_Plugin not found\\.$#',
12+
'identifier' => 'class.notFound',
13+
'count' => 1,
14+
'path' => __DIR__ . '/../../../src/wp-admin/press-this.php',
15+
];
16+
$ignoreErrors[] = [
17+
'message' => '#^Path in include\\(\\) "/press\\-this/class\\-wp\\-press\\-this\\-plugin\\.php" is not a file or it does not exist\\.$#',
18+
'identifier' => 'include.fileNotFound',
1319
'count' => 1,
1420
'path' => __DIR__ . '/../../../src/wp-admin/press-this.php',
1521
];
1622
$ignoreErrors[] = [
17-
// identifier: return.missing
1823
'message' => '#^Method WP_Customize_Background_Image_Setting\\:\\:update\\(\\) should return bool but return statement is missing\\.$#',
24+
'identifier' => 'return.missing',
1925
'count' => 1,
2026
'path' => __DIR__ . '/../../../src/wp-includes/customize/class-wp-customize-background-image-setting.php',
2127
];
2228
$ignoreErrors[] = [
23-
// identifier: return.missing
2429
'message' => '#^Method WP_Customize_Filter_Setting\\:\\:update\\(\\) should return bool but return statement is missing\\.$#',
30+
'identifier' => 'return.missing',
2531
'count' => 1,
2632
'path' => __DIR__ . '/../../../src/wp-includes/customize/class-wp-customize-filter-setting.php',
2733
];
2834
$ignoreErrors[] = [
29-
// identifier: return.missing
3035
'message' => '#^Method WP_Customize_Header_Image_Setting\\:\\:update\\(\\) should return bool but return statement is missing\\.$#',
31-
'count' => 1,
36+
'identifier' => 'return.missing',
37+
'count' => 2,
3238
'path' => __DIR__ . '/../../../src/wp-includes/customize/class-wp-customize-header-image-setting.php',
3339
];
3440
$ignoreErrors[] = [
35-
// identifier: class.notFound
3641
'message' => '#^Class GdImage not found\\.$#',
42+
'identifier' => 'class.notFound',
3743
'count' => 1,
3844
'path' => __DIR__ . '/../../../src/wp-includes/media.php',
3945
];
4046
$ignoreErrors[] = [
41-
// identifier: new.static
4247
'message' => '#^Unsafe usage of new static\\(\\)\\.$#',
48+
'identifier' => 'new.static',
4349
'count' => 1,
4450
'path' => __DIR__ . '/../../../src/wp-includes/style-engine/class-wp-style-engine-css-rules-store.php',
4551
];
4652
$ignoreErrors[] = [
47-
// identifier: variable.undefined
4853
'message' => '#^Undefined variable\\: \\$s$#',
54+
'identifier' => 'variable.undefined',
4955
'count' => 1,
5056
'path' => __DIR__ . '/../../../src/wp-includes/template.php',
5157
];

0 commit comments

Comments
 (0)