Skip to content

Commit 512ba40

Browse files
committed
refactor: remove unneeded assert()
1 parent c602c4f commit 512ba40

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

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)