Skip to content

Commit

Permalink
Update comment in OperatorEncoder
Browse files Browse the repository at this point in the history
Co-authored-by: Jeremy Mikola <jmikola@gmail.com>
  • Loading branch information
alcaeus and jmikola authored Jan 25, 2024
1 parent 8566a62 commit b5dba67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Builder/Encoder/OperatorEncoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ private function encodeAsArray(OperatorInterface $value): stdClass
$result = [];
/** @var mixed $val */
foreach (get_object_vars($value) as $val) {
// Skip optional arguments.
// $slice operator has the optional <position> argument in the middle of the array
// Skip optional arguments. For example, the $slice expression operator has an optional <position> argument
// in the middle of the array.
if ($val === Optional::Undefined) {
continue;
}
Expand Down

0 comments on commit b5dba67

Please sign in to comment.