20250818 v1.0.2-b1
This commit is contained in:
@@ -39,10 +39,10 @@
|
||||
* @param string|array|null $toType Метод конвертации в тип для заполнения таблицы базы данных (может быть
|
||||
* строкой (имя функции), может быть массивом (имя класса, имя метода) и null (по умолчанию)).
|
||||
*/
|
||||
public function __construct (string|array|null $fromType = null, string|array|null $toType = null)
|
||||
public function __construct (string | array | null $fromType = null, string | array | null $toType = null)
|
||||
{
|
||||
$this->ConvertToDB = $fromType;
|
||||
$this->ConvertFromDB = $toType;
|
||||
$this->ConvertToDB = $this->CreateCallback($fromType);
|
||||
$this->ConvertFromDB = $this->CreateCallback($toType);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -52,7 +52,7 @@
|
||||
*
|
||||
* @return Closure|null
|
||||
*/
|
||||
private function CreateCallback (string|array|null $callbackData): ?Closure
|
||||
private function CreateCallback (string | array | null $callbackData): ?Closure
|
||||
{
|
||||
// Если передан null
|
||||
if ($callbackData === null)
|
||||
|
Reference in New Issue
Block a user