-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
PHP Version
7.3
CodeIgniter4 Version
4.2.7
CodeIgniter4 Installation Method
Composer (using codeigniter4/appstarter)
Which operating systems have you tested for this bug?
Windows, Linux
Which server did you use?
apache
Database
Mysql and MariaDB
What happened?
Whe I try to run() validation using directly a Database\MySQLi\Connection y get Error not text|null parameter.
I want to send $validation->run($fieldsData,null,$this->db) because I get connections from database configuration, I send directly the connection, insted $dbGroup.
Validation works if I update the file vendor.....\system\Calidation\Validation.php line 109 (run() declaration), and remove ?string from $dbGroup = null, to allow other data, for example directly send Database|MySQLi\Connection.
Steps to Reproduce
configure 2 databases, directly, not use dbGroups.
Send validation run() and add a Database\MySQLi\Connnection insted $dbGroup.
If you delete ?string from validation::run() declaration of $dbGroup it works and not get error.
Expected Output
allow to validetion::run() to send Database\MySQLi\Connection and $dbGroups.
Anything else?
No response