dg / dibi

Dibi - smart database abstraction layer

Home Page:https://dibiphp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: Dibi\Bridges\Tracy\Panel::getConnectionName(): Argument #1 ($connection) must be of type Dibi\Connection, null given

stanley89 opened this issue · comments

Version: all versions from 4.1.4 above (incl. 5.0.1)

Bug Description

In https://github.com/dg/dibi/blob/master/src/Dibi/Bridges/Tracy/Panel.php on line 155, variable $singleConnection can be null if set so on line 105. This leads to TypeError: Dibi\Bridges\Tracy\Panel::getConnectionName(): Argument #1 ($connection) must be of type Dibi\Connection, null given

Steps To Reproduce

Use tracy with dibi panel with multiple connections

Expected Behavior

Should test if $singleConnection is null

Possible Solution

#451