WIP on docs and added basic enums supports

This commit is contained in:
mcndave committed 2023-01-14 02:19:42 +00:00
1 parent 497fe5547b
commit b6752f4364
22 files changed
+367 -35

No files matched your search

+5 -2
View File
@@ -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);