Skip to content

Commit 9186487

Browse files
committed
fix: Deprecated
ctype_digit(): Argument of type int will be interpreted as string in the future
1 parent 59a99f0 commit 9186487

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Database/OCI8/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ protected function buildDSN()
632632
}
633633

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

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

0 commit comments

Comments
 (0)