Skip to content

Commit 00cc81e

Browse files
committed
refactor: remove unneeded assert()
1 parent ba8d9b3 commit 00cc81e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

system/BaseModel.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1671,8 +1671,6 @@ protected function objectToArray($object, bool $onlyChanged = true, bool $recurs
16711671
{
16721672
$properties = $this->objectToRawArray($object, $onlyChanged, $recursive);
16731673

1674-
assert(is_array($properties));
1675-
16761674
// Convert any Time instances to appropriate $dateFormat
16771675
if ($properties !== []) {
16781676
$properties = array_map(function ($value) {

0 commit comments

Comments
 (0)