Skip to content

Commit

Permalink
Fix ctype_digit() argument type warning
Browse files Browse the repository at this point in the history
  • Loading branch information
h_obata committed Jun 26, 2024
1 parent 3658d73 commit 1dc2f66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/database/drivers/postgre/postgre_driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ protected function _build_dsn()

$this->hostname === '' OR $this->dsn = 'host='.$this->hostname.' ';

if ( ! empty($this->port) && ctype_digit($this->port))
if ( ! empty($this->port) && ctype_digit((string) $this->port))
{
$this->dsn .= 'port='.$this->port.' ';
}
Expand Down

0 comments on commit 1dc2f66

Please sign in to comment.