-
Notifications
You must be signed in to change notification settings - Fork 46
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
v3.5.0 , DocumentHandler, Undefined index: revision #269
Comments
jsteemann
added a commit
that referenced
this issue
Jun 9, 2021
Fix an undefined index notice/warning when calling the DocumentHandler::put function with a `revision` option set.
jsteemann
added a commit
that referenced
this issue
Jun 9, 2021
jsteemann
added a commit
that referenced
this issue
Jun 9, 2021
Fixed via the above PR in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
arangodb-php/lib/ArangoDBClient/DocumentHandler.php
Lines 648 to 655 in 54f7800
Line 651 may cause "Undefined index" Notice
'revision'
option may not be set in$options
param ofput
. Docs ofreplace
andreplaceById
methods doesn't mention it should be provided. Instead it points out to Document's _rev.So please consider (accordingly to
patch
method), to base the condition on something like:or provide
'revision'
option/param withinreplace
orreplaceById
methods (ie. like it's done inremove
)The issue doesn't appears in < 3.5.0 , since in previous versions
includeOptionsInParams
inArangoDBClient/Handler
returns empty array when its$options
param is empty.Condition result:
is always false then
The text was updated successfully, but these errors were encountered: