mysqli_warning::__construct() seems protected according reflection:
== Class: mysqli_warning
Could not construct class mysqli_warning
Message: Access to non-public constructor of class mysqli_warning
(PHP 5, PHP 7)
Represents a MySQL warning.
Message string
SQL state
Error number
mysqli_warning::__construct() seems protected according reflection:
== Class: mysqli_warning
Could not construct class mysqli_warning
Message: Access to non-public constructor of class mysqli_warning