File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ final class PreviousConnectingVisitor extends NodeVisitorAbstract
2222
2323 private ?Node $ previous ;
2424
25+ // a dummy property to force instantiation of DIContainerBridge
26+ // for use all over the phpstan-dba codebase
2527 private DIContainerBridge $ containerBridge ; // @phpstan-ignore property.onlyWritten
2628
2729 public function __construct (DIContainerBridge $ dummyParameter )
Original file line number Diff line number Diff line change @@ -24,7 +24,10 @@ final class MysqliTypeMapper
2424 public function __construct (?DbaApi $ dbaApi )
2525 {
2626 $ constants = get_defined_constants (true );
27- if (! array_key_exists ('mysqli ' , $ constants ) || ! is_array ($ constants ['mysqli ' ])) {
27+ if (
28+ ! is_array ($ constants ['mysqli ' ]) || // @phpstan-ignore-line
29+ ! array_key_exists ('mysqli ' , $ constants )
30+ ) {
2831 $ constants ['mysqli ' ] = [];
2932 }
3033
You can’t perform that action at this time.
0 commit comments