Skip to content

Commit 6105187

Browse files
committed
Update deprecation notice language
1 parent 09c78e3 commit 6105187

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@ public function listSearchIndexes(array $options = []): Iterator
956956
*/
957957
public function mapReduce(JavascriptInterface $map, JavascriptInterface $reduce, string|array|object $out, array $options = [])
958958
{
959-
@trigger_error(sprintf('The %s method is deprecated and will be removed in a future release.', __METHOD__), E_USER_DEPRECATED);
959+
@trigger_error(sprintf('The %s method is deprecated and will be removed in a version 2.0.', __METHOD__), E_USER_DEPRECATED);
960960

961961
$hasOutputCollection = ! is_mapreduce_output_inline($out);
962962

src/Model/IndexInfo.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function getName()
9999
*/
100100
public function getNamespace()
101101
{
102-
@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);
102+
@trigger_error('MongoDB 4.4 drops support for the namespace in indexes, the method "IndexInfo::getNamespace()" will be removed in version 2.0', E_USER_DEPRECATED);
103103

104104
return (string) $this->info['ns'];
105105
}
@@ -132,7 +132,7 @@ public function is2dSphere()
132132
*/
133133
public function isGeoHaystack()
134134
{
135-
@trigger_error('MongoDB 5.0 removes support for "geoHaystack" indexes, the method "IndexInfo::isGeoHaystack()" will be removed in a future release', E_USER_DEPRECATED);
135+
@trigger_error('MongoDB 5.0 removes support for "geoHaystack" indexes, the method "IndexInfo::isGeoHaystack()" will be removed in version 2.0', E_USER_DEPRECATED);
136136

137137
return array_search('geoHaystack', $this->getKey(), true) !== false;
138138
}

src/Operation/CreateCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ public function __construct(private string $databaseName, private string $collec
230230
}
231231

232232
if (isset($this->options['autoIndexId'])) {
233-
trigger_error('The "autoIndexId" option is deprecated and will be removed in a future release', E_USER_DEPRECATED);
233+
trigger_error('The "autoIndexId" option is deprecated and will be removed in version 2.0', E_USER_DEPRECATED);
234234
}
235235

236236
if (isset($this->options['pipeline']) && ! is_pipeline($this->options['pipeline'], true /* allowEmpty */)) {

0 commit comments

Comments
 (0)