We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88fd42d commit 8ad7c4aCopy full SHA for 8ad7c4a
src/Model/IndexInfo.php
@@ -21,6 +21,8 @@
21
use MongoDB\Exception\BadMethodCallException;
22
use function array_key_exists;
23
use function array_search;
24
+use function sprintf;
25
+use function trigger_error;
26
27
/**
28
* Index information model class.
@@ -95,9 +97,12 @@ public function getName()
95
97
* Return the index namespace (e.g. "db.collection").
96
98
*
99
* @return string
100
+ * @deprecated Deprecated in 1.7.0
101
*/
102
public function getNamespace()
103
{
104
+ @trigger_error(sprintf('The "%s" method is deprecated since mongodb/mongodb 1.7 and will be dropped in 2.0.', __METHOD__));
105
+
106
return (string) $this->info['ns'];
107
}
108
0 commit comments