Skip to content

Commit 73eaee5

Browse files
committed
fix build
1 parent e21925d commit 73eaee5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/Ast/PreviousConnectingVisitor.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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)

src/TypeMapping/MysqliTypeMapper.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)