Skip to content

Commit 7dfc043

Browse files
committed
PHPLIB-360: Make ChangeStream::CURSOR_NOT_FOUND private
1 parent b1d33e7 commit 7dfc043

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

UPGRADE-2.0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ UPGRADE FROM 1.x to 2.0
22
========================
33

44
* Classes in the namespace `MongoDB\Operation\` are `final`.
5+
* The `MongoDB\ChangeStream::CURSOR_NOT_FOUND` constant is now private.
56

67
GridFS
78
------

psalm-baseline.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,6 @@
181181
</RedundantConditionGivenDocblockType>
182182
</file>
183183
<file src="src/ChangeStream.php">
184-
<DeprecatedConstant>
185-
<code><![CDATA[self::CURSOR_NOT_FOUND]]></code>
186-
</DeprecatedConstant>
187184
<TooManyArguments>
188185
<code><![CDATA[getId]]></code>
189186
</TooManyArguments>

src/ChangeStream.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,7 @@
4949
*/
5050
class ChangeStream implements Iterator
5151
{
52-
/**
53-
* @deprecated 1.4
54-
* @todo make this constant private in 2.0 (see: PHPLIB-360)
55-
*/
56-
public const CURSOR_NOT_FOUND = 43;
52+
private const CURSOR_NOT_FOUND = 43;
5753

5854
private const RESUMABLE_ERROR_CODES = [
5955
6, // HostUnreachable

0 commit comments

Comments
 (0)