Skip to content

Commit 94a803d

Browse files
Fabien Villepintejmikola
authored andcommitted
Fix unresolved class references in doc blocks
PhpStorm (and possibly other IDEs) must be able to resolve the class name in order to process these references. We can use FQCNs instead of adding "use" statements.
1 parent 0a979b2 commit 94a803d

36 files changed

+40
-40
lines changed

src/Model/CollectionInfo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* collection. It provides methods to access options for the collection.
1111
*
1212
* @api
13-
* @see MongoDB\Database::listCollections()
13+
* @see \MongoDB\Database::listCollections()
1414
* @see https://github.com/mongodb/specifications/blob/master/source/enumerate-collections.rst
1515
*/
1616
class CollectionInfo

src/Model/CollectionInfoCommandIterator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* command.
1212
*
1313
* @internal
14-
* @see MongoDB\Database::listCollections()
14+
* @see \MongoDB\Database::listCollections()
1515
* @see https://github.com/mongodb/specifications/blob/master/source/enumerate-collections.rst
1616
* @see http://docs.mongodb.org/manual/reference/command/listCollections/
1717
*/

src/Model/CollectionInfoIterator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* This iterator is used for enumerating collections in a database.
1111
*
1212
* @api
13-
* @see MongoDB\Database::listCollections()
13+
* @see \MongoDB\Database::listCollections()
1414
*/
1515
interface CollectionInfoIterator extends Iterator
1616
{

src/Model/CollectionInfoLegacyIterator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* the listCollections command.
1717
*
1818
* @internal
19-
* @see MongoDB\Database::listCollections()
19+
* @see \MongoDB\Database::listCollections()
2020
* @see https://github.com/mongodb/specifications/blob/master/source/enumerate-collections.rst
2121
* @see http://docs.mongodb.org/manual/reference/command/listCollections/
2222
* @see http://docs.mongodb.org/manual/reference/system-collections/

src/Model/DatabaseInfo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* command. It provides methods to access common database properties.
1010
*
1111
* @api
12-
* @see MongoDB\Client::listDatabases()
12+
* @see \MongoDB\Client::listDatabases()
1313
* @see http://docs.mongodb.org/manual/reference/command/listDatabases/
1414
*/
1515
class DatabaseInfo

src/Model/DatabaseInfoIterator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* This iterator is used for enumerating databases on a server.
1111
*
1212
* @api
13-
* @see MongoDB\Client::listDatabases()
13+
* @see \MongoDB\Client::listDatabases()
1414
*/
1515
interface DatabaseInfoIterator extends Iterator
1616
{

src/Model/DatabaseInfoLegacyIterator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* command's single-document result.
1010
*
1111
* @internal
12-
* @see MongoDB\Client::listDatabases()
12+
* @see \MongoDB\Client::listDatabases()
1313
* @see http://docs.mongodb.org/manual/reference/command/listDatabases/
1414
*/
1515
class DatabaseInfoLegacyIterator implements DatabaseInfoIterator

src/Model/IndexInfo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* db.collection.createIndex() documentation.
1717
*
1818
* @api
19-
* @see MongoDB\Collection::listIndexes()
19+
* @see \MongoDB\Collection::listIndexes()
2020
* @see https://github.com/mongodb/specifications/blob/master/source/enumerate-indexes.rst
2121
* @see http://docs.mongodb.org/manual/reference/method/db.collection.createIndex/
2222
*/

src/Model/IndexInfoIterator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* This iterator is used for enumerating indexes in a collection.
1111
*
1212
* @api
13-
* @see MongoDB\Collection::listIndexes()
13+
* @see \MongoDB\Collection::listIndexes()
1414
*/
1515
interface IndexInfoIterator extends Iterator
1616
{

src/Model/IndexInfoIteratorIterator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* collection.
1313
*
1414
* @internal
15-
* @see MongoDB\Collection::listIndexes()
15+
* @see \MongoDB\Collection::listIndexes()
1616
* @see https://github.com/mongodb/specifications/blob/master/source/enumerate-indexes.rst
1717
* @see http://docs.mongodb.org/manual/reference/command/listIndexes/
1818
* @see http://docs.mongodb.org/manual/reference/system-collections/

0 commit comments

Comments
 (0)