Skip to content

Commit 139bb9b

Browse files
committed
fix some invalid parameters types
1 parent 3a0133a commit 139bb9b

3 files changed

Lines changed: 2 additions & 21 deletions

File tree

system/Database/MySQLi/Builder.php

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -53,23 +53,4 @@ class Builder extends BaseBuilder
5353
*/
5454
protected $escapeChar = '`';
5555

56-
/**
57-
* FROM tables
58-
*
59-
* Groups tables in FROM clauses if needed, so there is no confusion
60-
* about operator precedence.
61-
*
62-
* Note: This is only used (and overridden) by MySQL.
63-
*
64-
* @return string
65-
*/
66-
protected function _fromTables(): string
67-
{
68-
if ( ! empty($this->QBJoin) && count($this->QBFrom) > 1)
69-
{
70-
return '('.implode(', ', $this->QBFrom).')';
71-
}
72-
73-
return implode(', ', $this->QBFrom);
74-
}
7556
}

system/HTTP/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ public function getIPAddress(): string
234234
*/
235235
public function isValidIP(string $ip = null, string $which = null): bool
236236
{
237-
switch (strtolower($which))
237+
switch (strtolower( (string) $which))
238238
{
239239
case 'ipv4':
240240
$which = FILTER_FLAG_IPV4;

system/HTTP/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ public function sendHeaders()
714714
// http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html
715715
if (! isset($this->headers['Date']))
716716
{
717-
$this->setDate(\DateTime::createFromFormat('U', time()));
717+
$this->setDate(\DateTime::createFromFormat('U', (string) time()));
718718
}
719719

720720
// HTTP Status

0 commit comments

Comments
 (0)