File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/Symfony/Bridge/Doctrine/Middleware/Debug Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public function prepare(string $sql): DriverStatement
45
45
$ this ->debugDataHolder ,
46
46
$ this ->connectionName ,
47
47
$ sql ,
48
- $ this ->stopwatch
48
+ $ this ->stopwatch ,
49
49
);
50
50
}
51
51
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ public function execute($params = null): ResultInterface
62
62
// clone to prevent variables by reference to change
63
63
$ this ->debugDataHolder ->addQuery ($ this ->connectionName , $ query = clone $ this ->query );
64
64
65
- if (null !== $ this ->stopwatch ) {
65
+ if ($ this ->stopwatch ) {
66
66
$ this ->stopwatch ->start ('doctrine ' , 'doctrine ' );
67
67
}
68
68
@@ -73,7 +73,7 @@ public function execute($params = null): ResultInterface
73
73
} finally {
74
74
$ query ->stop ();
75
75
76
- if (null !== $ this ->stopwatch ) {
76
+ if ($ this ->stopwatch ) {
77
77
$ this ->stopwatch ->stop ('doctrine ' );
78
78
}
79
79
}
You can’t perform that action at this time.
0 commit comments