Skip to content

Commit c2165aa

Browse files
committed
ci: scope phpstan method.nonObject ignore to inventory repository wpdb guards
1 parent 93902a4 commit c2165aa

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

phpstan.neon

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,11 @@ parameters:
33
- stubs/phpstan/datamachine-base-command.php
44
- stubs/phpstan/datamachine-plugin-settings.php
55
- stubs/phpstan/datamachine-system-task.php
6+
ignoreErrors:
7+
# The inventory repository intentionally guards $wpdb with isset()/method_exists()
8+
# for multisite safety, which narrows the global to class-string|object and makes
9+
# PHPStan reject the subsequent $wpdb method calls. The runtime object is always a
10+
# \wpdb here; these calls are safe.
11+
-
12+
identifier: method.nonObject
13+
path: inc/Storage/WorktreeInventoryRepository.php

0 commit comments

Comments
 (0)