Skip to content

Commit

Permalink
fix: Deprecated
Browse files Browse the repository at this point in the history
ctype_digit(): Argument of type int will be interpreted as string in the future
kenjis committed Jun 22, 2024
1 parent 9a9da14 commit fa5f5c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Database/OCI8/Connection.php
Original file line number Diff line number Diff line change
@@ -632,7 +632,7 @@ protected function buildDSN()
}

$isEasyConnectableHostName = $this->hostname !== '' && ! str_contains($this->hostname, '/') && ! str_contains($this->hostname, ':');
$easyConnectablePort = ! empty($this->port) && ctype_digit($this->port) ? ':' . $this->port : '';
$easyConnectablePort = ! empty($this->port) && ctype_digit((string) $this->port) ? ':' . $this->port : '';
$easyConnectableDatabase = $this->database !== '' ? '/' . ltrim($this->database, '/') : '';

if ($isEasyConnectableHostName && ($easyConnectablePort !== '' || $easyConnectableDatabase !== '')) {

0 comments on commit fa5f5c6

Please sign in to comment.