- WIP on first 'doc' and also minimal support for enums where added
This commit is contained in:
1 parent
497fe5547b
commit
d600908f47
22 files changed
+367
-35
No files matched your search
@@ -77,7 +77,7 @@ class MySQL implements AdapterInterface {
|
||||
throw $ex;
|
||||
}
|
||||
finally {
|
||||
$this->password = str_repeat('*', strlen($this->password));
|
||||
$this->password = str_repeat('*', random_int(8,16));
|
||||
}
|
||||
|
||||
return $pdo;
|
||||
@@ -148,9 +148,12 @@ class MySQL implements AdapterInterface {
|
||||
}
|
||||
}
|
||||
|
||||
public function writableValue(/* mixed */ $value) /*: mixed*/
|
||||
public function writableValue(mixed $value) : mixed
|
||||
{
|
||||
switch (true) {
|
||||
case $value instanceof \UnitEnum:
|
||||
return Ulmus::convertEnum($value);
|
||||
|
||||
case is_object($value):
|
||||
return Ulmus::convertObject($value);
|
||||
|
||||
|
||||
Reference in new issue
Block a user