Skip to content

Commit

Permalink
Update Connection.php
Browse files Browse the repository at this point in the history
Passing null to parameter codeigniter4#2 ($string) of type string is deprecated
  • Loading branch information
rakoitde committed Oct 8, 2022
1 parent 0c6ca53 commit 441bd6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Database/MySQLi/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ protected function _fieldData(string $table): array
$unsigned = null;
sscanf($query[$i]->Type, '%[a-z](%[0-9,]) %[a-z]', $retVal[$i]->type, $retVal[$i]->length, $unsigned);

$exp = explode(',', $retVal[$i]->length);
$exp = explode(',', $retVal[$i]->length ?? '');
$retVal[$i]->max_length = isset($exp[0]) ? (int) $exp[0] : 0;
$retVal[$i]->decimal_places = isset($exp[1]) ? (int) $exp[1] : 0;

Expand Down

0 comments on commit 441bd6d

Please sign in to comment.