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
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -96,10 +96,14 @@ public function getName()
96
96
/**
97
97
* Return the index namespace (e.g. "db.collection").
98
98
*
99
+
* @deprecated
100
+
*
99
101
* @return string
100
102
*/
101
103
publicfunctiongetNamespace()
102
104
{
105
+
@trigger_error('MongoDB 4.4 drops support for the namespace in indexes, the method "IndexInfo::getNamespace()" will be removed in a future release', E_USER_DEPRECATED);
106
+
103
107
return (string) $this->info['ns'];
104
108
}
105
109
@@ -131,7 +135,7 @@ public function is2dSphere()
131
135
*/
132
136
publicfunctionisGeoHaystack()
133
137
{
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);
138
+
@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