Skip to content

Commit 293ca1e

Browse files
authored
Merge pull request #51 from matbech/patch-1
Initialize profiler property to null in Statement class
2 parents 2812e87 + 6e7ccb7 commit 293ca1e

3 files changed

Lines changed: 27 additions & 28 deletions

File tree

composer.lock

Lines changed: 26 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpstan-baseline.neon

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,6 @@ parameters:
6666
count: 1
6767
path: src/Driver.php
6868

69-
-
70-
message: '#^Parameter \#2 \$array of function implode expects array\<string\>, array\<int, array\<int, string\>\> given\.$#'
71-
identifier: argument.type
72-
count: 2
73-
path: src/Metadata/Source.php
74-
75-
-
76-
message: '#^Parameter \#2 \$array of function implode expects array\<string\>, array\<int, list\<string\>\> given\.$#'
77-
identifier: argument.type
78-
count: 4
79-
path: src/Metadata/Source.php
80-
8169
-
8270
message: '#^Variable \$isFK might not be defined\.$#'
8371
identifier: variable.undefined

src/Statement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ final class Statement implements StatementInterface, DriverAwareInterface, Profi
2727

2828
protected Driver $driver;
2929

30-
protected ?ProfilerInterface $profiler;
30+
protected ?ProfilerInterface $profiler = null;
3131

3232
protected string $sql = '';
3333

0 commit comments

Comments
 (0)