We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d7e8f04 + 139bb9b commit 222489eCopy full SHA for 222489e
2 files changed
system/HTTP/Request.php
@@ -234,7 +234,7 @@ public function getIPAddress(): string
234
*/
235
public function isValidIP(string $ip = null, string $which = null): bool
236
{
237
- switch (strtolower($which))
+ switch (strtolower( (string) $which))
238
239
case 'ipv4':
240
$which = FILTER_FLAG_IPV4;
system/HTTP/Response.php
@@ -714,7 +714,7 @@ public function sendHeaders()
714
// http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html
715
if (! isset($this->headers['Date']))
716
717
- $this->setDate(\DateTime::createFromFormat('U', time()));
+ $this->setDate(\DateTime::createFromFormat('U', (string) time()));
718
}
719
720
// HTTP Status
0 commit comments