File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ class Update implements Executable, Explainable
54
54
private static $ wireVersionForDocumentLevelValidation = 4 ;
55
55
56
56
/** @var integer */
57
- private static $ wireVersionForHint = 8 ;
57
+ private static $ wireVersionForHintServerSideError = 5 ;
58
58
59
59
/** @var string */
60
60
private $ databaseName ;
@@ -202,7 +202,10 @@ public function execute(Server $server)
202
202
throw UnsupportedException::collationNotSupported ();
203
203
}
204
204
205
- if (isset ($ this ->options ['hint ' ]) && ! server_supports_feature ($ server , self ::$ wireVersionForHint )) {
205
+ /* Server versions >= 3.4.0 raise errors for unknown update
206
+ * options. For previous versions, the CRUD spec requires a client-side
207
+ * error. */
208
+ if (isset ($ this ->options ['hint ' ]) && ! server_supports_feature ($ server , self ::$ wireVersionForHintServerSideError )) {
206
209
throw UnsupportedException::hintNotSupported ();
207
210
}
208
211
You can’t perform that action at this time.
0 commit comments