Skip to content

Commit f6f96e8

Browse files
authored
set should accept not only string
I think someone adds casting here by mistake
1 parent 005cef0 commit f6f96e8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

system/Model.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,12 +498,12 @@ public function first()
498498
* builder methods and still get validated data, like replace.
499499
*
500500
* @param mixed $key
501-
* @param string $value
501+
* @param string|int $value
502502
* @param boolean|null $escape
503503
*
504504
* @return $this
505505
*/
506-
public function set($key, string $value = '', bool $escape = null)
506+
public function set($key, $value = '', bool $escape = null)
507507
{
508508
$data = is_array($key)
509509
? $key

0 commit comments

Comments
 (0)