-
Notifications
You must be signed in to change notification settings - Fork 438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement remaining conformance tests for Firestore. #1207
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few minor notes, the changes overall seem to make sense.
Firestore/src/FieldPath.php
Outdated
|
||
/** | ||
* @var array | ||
*/ | ||
private $fieldNames; | ||
|
||
/** | ||
* @param array $fieldNames A list of field names. | ||
*/ |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Firestore/src/FieldPath.php
Outdated
|
||
$fieldPath = implode('.', $out); | ||
|
||
$this->validateString($fieldPath); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
throw new \InvalidArgumentException('Cannot delete fields when creating a document.'); | ||
} | ||
|
||
if ($flags['timestampInArray']) { | ||
throw new \InvalidArgumentException( |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
list ($fields, $sentinels, $flags) = $this->filterFields($fields); | ||
|
||
if (!$merge && $sentinels[FieldValue::deleteField()]) { | ||
throw new \InvalidArgumentException('Delete cannot appear in data unless `$options[\'merge\']` is set.'); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
No description provided.