Skip to content

Commit

Permalink
TASK: Code style adjust 5 internal usages of Object::none() to `::c…
Browse files Browse the repository at this point in the history
…reateEmpty()`

We had the discussion again how to name an empty object and for normal collections we used `createEmpty()` in the past and should continue to do so. The use of `none()` snuck in lately via the subscription engine.

neos/neos-development-collection#5463 (comment)
  • Loading branch information
mhsdesign committed Mar 5, 2025
1 parent 9d332b2 commit fb4527f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function findByCriteriaForUpdate(SubscriptionCriteria $criteria): Subscri
assert($result instanceof Result);
$rows = $result->fetchAllAssociative();
if ($rows === []) {
return Subscriptions::none();
return Subscriptions::createEmpty();
}
return Subscriptions::fromArray(array_map(self::fromDatabase(...), $rows));
}
Expand Down

0 comments on commit fb4527f

Please sign in to comment.