DocumentShape::field() should only allow arrays #23
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Research
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No project
No assignees
1 participant
Notifications
Total time spent: 7 minutes 31 seconds
Due date
c.fahner
7 minutes 31 seconds
No due date set.
Dependencies
No dependencies set
Reference
slendium/ocd!23
Loading…
Reference in a new issue
No description provided.
Delete branch "issues/21"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Resolves #21.
Restrict DocumentShape::field() to only allow full array paths, essentially making it a shorthand for
new FieldPath@ -58,3 +58,2 @@$inputs[] = $spec instanceof Closure? $spec(self::field((string)$field)): new Expr\Equal(self::field((string)$field), $spec);? $spec(self::field([ (string)$field ]))Could just use
new FieldPathdirectly here