This commit is contained in:
2022-12-12 11:19:27 +08:00
parent 77f63a85ed
commit d53b001ef7
+1 -1
View File
@@ -271,7 +271,7 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, T
*/
public static function findOne($param, $db = NULL): static|null
{
if (is_bool($param)) {
if (is_bool($param) || is_null($param)) {
return NULL;
}
if (is_numeric($param)) {