Compare commits

...

3 Commits

Author SHA1 Message Date
as2252258 94857ecb46 eee 2025-02-17 16:29:10 +08:00
as2252258 0f0a3349fb eee 2025-02-17 16:26:32 +08:00
as2252258 7fb9c3ea05 eee 2025-01-18 20:28:24 +08:00
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -699,7 +699,7 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, \
$method = $prefix . 'Attribute';
if (method_exists($this, $method)) {
$this->_attributes[$name] = $this->{$method} ($value);
$this->_attributes[$name] = $this->{$method}($value);
} else {
$this->_attributes[$name] = $value;
}
+3 -2
View File
@@ -1,4 +1,5 @@
<?php /** @noinspection ALL */
<?php
/** @noinspection ALL */
declare(strict_types=1);
@@ -189,7 +190,7 @@ class SqlBuilder extends Component
if (is_null($value)) {
return $keys;
}
if (preg_match('/^[+|-]\s\d+$/', $value)) {
if (preg_match('/^[+|-]\s\d+$/', (string)$value)) {
$keys[] = $key . '=' . $key . ' ' . $value;
} else {
$this->query->pushParam($value);