|
78 | 78 | use function is_bool; |
79 | 79 | use function strlen; |
80 | 80 |
|
81 | | -/** @psalm-import-type OperationType from BulkWrite */ |
| 81 | +/** |
| 82 | + * @psalm-import-type OperationType from BulkWrite |
| 83 | + * @phpstan-import-type OperationType from BulkWrite |
| 84 | + */ |
82 | 85 | class Collection |
83 | 86 | { |
84 | 87 | private const DEFAULT_TYPE_MAP = [ |
@@ -262,12 +265,14 @@ public function aggregate(array|Pipeline $pipeline, array $options = []): Cursor |
262 | 265 | /** |
263 | 266 | * Executes multiple write operations. |
264 | 267 | * |
265 | | - * @see BulkWrite::__construct() for supported options |
| 268 | + * @param list<array{deleteMany: array{0: object|array, 1?: array}}|array{deleteOne: array{0: object|array, 1?: array}}|array{insertOne: array{0: object|array}}|array{replaceOne: array{0: object|array, 1: object|array, 2?: array}}|array{updateMany: array{0: object|array, 1: object|array, 2?: array}}|array{updateOne: array{0: object|array, 1: object|array, 2?: array}}> $operations List of write operations |
266 | 269 | * @psalm-param list<OperationType> $operations List of write operations |
267 | | - * @param array $options Command options |
| 270 | + * @phpstan-param list<OperationType> $operations List of write operations |
| 271 | + * @param array $options Command options |
268 | 272 | * @throws UnsupportedException if options are not supported by the selected server |
269 | 273 | * @throws InvalidArgumentException for parameter/option parsing errors |
270 | 274 | * @throws DriverRuntimeException for other driver errors (e.g. connection errors) |
| 275 | + * @see BulkWrite::__construct() for supported options |
271 | 276 | */ |
272 | 277 | public function bulkWrite(array $operations, array $options = []): BulkWriteResult |
273 | 278 | { |
|
0 commit comments