mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-06-21 04:15:44 +02:00
fix: deprecation warning (#4567)
This commit is contained in:
parent
b7c04f8587
commit
0130adcd6c
1 changed files with 1 additions and 0 deletions
|
@ -92,6 +92,7 @@ class CacheFactory
|
||||||
if (empty($port)) {
|
if (empty($port)) {
|
||||||
throw new \Exception('"port" param is not set for ' . $section);
|
throw new \Exception('"port" param is not set for ' . $section);
|
||||||
}
|
}
|
||||||
|
$port = (string) $port;
|
||||||
if (!ctype_digit($port)) {
|
if (!ctype_digit($port)) {
|
||||||
throw new \Exception('"port" param is invalid for ' . $section);
|
throw new \Exception('"port" param is invalid for ' . $section);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue