You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Model/IndexInfo.php
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,9 @@
23
23
24
24
usefunctionarray_key_exists;
25
25
usefunctionarray_search;
26
+
usefunctiontrigger_error;
27
+
28
+
useconstE_USER_DEPRECATED;
26
29
27
30
/**
28
31
* Index information model class.
@@ -124,9 +127,12 @@ public function is2dSphere()
124
127
* Return whether or not this index is of type geoHaystack.
125
128
*
126
129
* @return boolean
130
+
* @deprecated Since 1.16: MongoDB 5.0 removes support for geoHaystack indexes.
127
131
*/
128
132
publicfunctionisGeoHaystack()
129
133
{
134
+
trigger_error('MongoDB 5.0 removes support for "geoHaystack" indexes, the method "IndexInfo::isGeoHaystack()" will be removed in a future release', E_USER_DEPRECATED);
0 commit comments