Skip to content

Commit 933c4d2

Browse files
committed
Fix PHPStan
1 parent ccb43c7 commit 933c4d2

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

phpstan.neon.dist

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ parameters:
77
checkMissingIterableValueType: false
88
paths:
99
- class-wp-bootstrap-navwalker.php
10-
autoload_files:
10+
scanFiles:
1111
- tests/phpstan/class-wp-nav-menu-args.php
1212
- tests/phpstan/class-wp-nav-menu-item.php
1313
- class-wp-bootstrap-navwalker.php
@@ -22,3 +22,7 @@ parameters:
2222
-
2323
message: '#^Method WP_Bootstrap_Navwalker::(start_lvl|start_el)\(\) has no return typehint specified\.$#'
2424
path: class-wp-bootstrap-navwalker.php
25+
# Uncertain properties.
26+
-
27+
message: '#^Property WP_Nav_Menu_Args::\$\S+ \(string\) in isset\(\) is not nullable\.$#'
28+
path: class-wp-bootstrap-navwalker.php

0 commit comments

Comments
 (0)