Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-1265

Check strings start with $$ or $ when a fieldPath or a variable are expected

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • builder-0.1
    • Affects Version/s: None
    • Component/s: Aggregation
    • None

      MongoDB\Builder\Expression\FieldPath is encoded as to $<name>

      MongoDB\Builder\Expression\Variable is encoded as to $$<name>

      When an FieldPath or a Variable is accepted as an argument and a string is provided, check that the string starts with $ or $$

      This check can't be done if a string or mixed is accepted.

            Assignee:
            jerome.tamarelle@mongodb.com Jérôme Tamarelle
            Reporter:
            jerome.tamarelle@mongodb.com Jérôme Tamarelle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: