Skip to content

Commit cc536fd

Browse files
committed
Adjust readme, fix another PHP 8.1 issue in Cursor
1 parent 4ddda7c commit cc536fd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ php composer.phar require --prefer-dist yiisoft/yii2-mongodb
3535
or add
3636

3737
```
38-
"yiisoft/yii2-mongodb": "~2.1.0"
38+
"yiisoft/yii2-mongodb": "~3.0.0"
3939
```
4040

41-
to the require section of your composer.json.
41+
to the `require` section of your `composer.json`.
4242

4343
Configuration
4444
-------------

src/file/Cursor.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public function current()
5555
* This method is required by the interface [[\Countable]].
5656
* @return int elements count.
5757
*/
58+
#[\ReturnTypeWillChange]
5859
public function count()
5960
{
6061
return count($this->cursor);

0 commit comments

Comments
 (0)