- Bugfixes in search request, WIP on JsonTrait

This commit is contained in:
mcndave committed 2024-11-21 19:16:40 -05:00
1 parent e3314f40ac
commit b601939459
5 files changed
+10 -6

No files matched your search

@@ -90,7 +90,8 @@ trait SearchRequestFromRequestTrait
sprintf("Given value '%s' do not exists within enum '%s'. Try one of those values instead : %s", $value, $enum, $cases)
);
}
} elseif ($type->builtIn) {
}
elseif ($type->builtIn || $value instanceof \Stringable ) {
$this->$propertyName = $value;
}
}