eee
This commit is contained in:
+7
-7
@@ -47,13 +47,13 @@ abstract class HasBase implements \Database\Traits\Relation
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param $name
|
||||
* @param $arguments
|
||||
* @return static
|
||||
* @throws
|
||||
* @param string $name
|
||||
* @param array $arguments
|
||||
* @return $this|mixed
|
||||
*/
|
||||
public function __call($name, $arguments)
|
||||
public function __call(string $name, array $arguments)
|
||||
{
|
||||
if ($name !== 'get') {
|
||||
$relation = Kiri::getDi()->get(Relation::class);
|
||||
@@ -66,10 +66,10 @@ abstract class HasBase implements \Database\Traits\Relation
|
||||
|
||||
|
||||
/**
|
||||
* @param $name
|
||||
* @param string $name
|
||||
* @return mixed
|
||||
*/
|
||||
public function __get($name): mixed
|
||||
public function __get(string $name): mixed
|
||||
{
|
||||
if ($this->data === null) {
|
||||
$this->data = $this->get();
|
||||
|
||||
@@ -724,12 +724,12 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq
|
||||
|
||||
|
||||
/**
|
||||
* @param $column
|
||||
* @param $value
|
||||
* @param string $column
|
||||
* @param string $value
|
||||
* @param string $opera
|
||||
* @return string
|
||||
*/
|
||||
private function sprintf($column, $value, string $opera = '='): string
|
||||
private function sprintf(string $column, string $value, string $opera = '='): string
|
||||
{
|
||||
$this->pushParam($value);
|
||||
return $column . ' ' . $opera . ' ?';
|
||||
|
||||
Reference in New Issue
Block a user