Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

Commit b5dba67

Browse files
alcaeusjmikola
andauthored
Update comment in OperatorEncoder
Co-authored-by: Jeremy Mikola <jmikola@gmail.com>
1 parent 8566a62 commit b5dba67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Builder/Encoder/OperatorEncoder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ private function encodeAsArray(OperatorInterface $value): stdClass
6868
$result = [];
6969
/** @var mixed $val */
7070
foreach (get_object_vars($value) as $val) {
71-
// Skip optional arguments.
72-
// $slice operator has the optional <position> argument in the middle of the array
71+
// Skip optional arguments. For example, the $slice expression operator has an optional <position> argument
72+
// in the middle of the array.
7373
if ($val === Optional::Undefined) {
7474
continue;
7575
}

0 commit comments

Comments
 (0)