-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return value of CodeIgniter\Database\BaseConnection::getConnectStart() must be of the type float, null returned #2158
Comments
I'm not able to reproduce this error using either develop branch or RC.1 |
Me neither, tested with default and an additional DB connection with the debug toolbar collector on. |
Me neither. Ty! |
Aha! If you connect to the database in a pre_system event, then toolbar will initialise with 1 database connection. And fail if the connection is never used. app/Config/Events.php:
|
This error occurs if I connect to a database group but never use it.
Ex.
connectTime
in BaseConnection is set when the first query is run. But Database::formatTimelineData will always call getConnectStart.The text was updated successfully, but these errors were encountered: