File tree Expand file tree Collapse file tree 3 files changed +2
-10
lines changed Expand file tree Collapse file tree 3 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ UPGRADE FROM 1.x to 2.0
3
3
4
4
* Classes in the namespace ` MongoDB\Operation\ ` are ` final ` .
5
5
* All methods in interfaces and classes now define a return type.
6
+ * The ` MongoDB\ChangeStream::CURSOR_NOT_FOUND ` constant is now private.
6
7
7
8
GridFS
8
9
------
Original file line number Diff line number Diff line change 179
179
count($queriesOrArrayOfQueries[0]) > 0]]> </code >
180
180
</RedundantConditionGivenDocblockType >
181
181
</file >
182
- <file src =" src/ChangeStream.php" >
183
- <DeprecatedConstant >
184
- <code ><![CDATA[ self::CURSOR_NOT_FOUND]]> </code >
185
- </DeprecatedConstant >
186
- </file >
187
182
<file src =" src/Client.php" >
188
183
<DeprecatedInterface >
189
184
<code ><![CDATA[ DatabaseInfoIterator]]> </code >
Original file line number Diff line number Diff line change 43
43
*/
44
44
class ChangeStream implements Iterator
45
45
{
46
- /**
47
- * @deprecated 1.4
48
- * @todo make this constant private in 2.0 (see: PHPLIB-360)
49
- */
50
- public const CURSOR_NOT_FOUND = 43 ;
46
+ private const CURSOR_NOT_FOUND = 43 ;
51
47
52
48
private const RESUMABLE_ERROR_CODES = [
53
49
6 , // HostUnreachable
You can’t perform that action at this time.
0 commit comments