|
196 | 196 | </MixedAssignment> |
197 | 197 | </file> |
198 | 198 | <file src="src/Model/ChangeStreamIterator.php"> |
199 | | - <DocblockTypeContradiction occurrences="2"> |
200 | | - <code>! is_array($document) && ! is_object($document)</code> |
201 | | - <code>isset($initialResumeToken) && ! is_array($initialResumeToken) && ! is_object($initialResumeToken)</code> |
202 | | - </DocblockTypeContradiction> |
203 | 199 | <MixedArgument occurrences="2"> |
204 | 200 | <code>$reply->cursor->nextBatch</code> |
205 | 201 | <code>$this->current()</code> |
|
276 | 272 | </MixedAssignment> |
277 | 273 | </file> |
278 | 274 | <file src="src/Model/IndexInput.php"> |
279 | | - <MixedArgument occurrences="1"> |
| 275 | + <MixedArgument occurrences="2"> |
280 | 276 | <code>$fieldName</code> |
| 277 | + <code>$index['key']</code> |
281 | 278 | </MixedArgument> |
282 | 279 | <MixedAssignment occurrences="2"> |
283 | 280 | <code>$fieldName</code> |
|
328 | 325 | <code>$args[1]</code> |
329 | 326 | <code>$args[2]</code> |
330 | 327 | </MixedArgument> |
331 | | - <MixedArrayAccess occurrences="28"> |
| 328 | + <MixedArrayAccess occurrences="30"> |
332 | 329 | <code>$args[0]</code> |
333 | 330 | <code>$args[0]</code> |
334 | 331 | <code>$args[0]</code> |
335 | 332 | <code>$args[0]</code> |
| 333 | + <code>$args[0]</code> |
| 334 | + <code>$args[1]</code> |
336 | 335 | <code>$args[1]</code> |
337 | 336 | <code>$args[1]</code> |
338 | 337 | <code>$args[1]</code> |
|
395 | 394 | </MixedOperand> |
396 | 395 | </file> |
397 | 396 | <file src="src/Operation/Count.php"> |
398 | | - <DocblockTypeContradiction occurrences="1"> |
399 | | - <code>! is_array($filter) && ! is_object($filter)</code> |
400 | | - </DocblockTypeContradiction> |
401 | 397 | <MixedAssignment occurrences="6"> |
402 | 398 | <code>$cmd[$option]</code> |
403 | 399 | <code>$cmd['hint']</code> |
|
410 | 406 | <code>isInTransaction</code> |
411 | 407 | </MixedMethodCall> |
412 | 408 | </file> |
413 | | - <file src="src/Operation/CountDocuments.php"> |
414 | | - <DocblockTypeContradiction occurrences="1"> |
415 | | - <code>! is_array($filter) && ! is_object($filter)</code> |
416 | | - </DocblockTypeContradiction> |
417 | | - </file> |
418 | 409 | <file src="src/Operation/CreateCollection.php"> |
419 | 410 | <MixedArgument occurrences="2"> |
420 | 411 | <code>$options['pipeline']</code> |
|
427 | 418 | </MixedAssignment> |
428 | 419 | </file> |
429 | 420 | <file src="src/Operation/CreateEncryptedCollection.php"> |
430 | | - <MixedArgument occurrences="1"> |
| 421 | + <MixedArgument occurrences="2"> |
| 422 | + <code>$options['encryptedFields']</code> |
431 | 423 | <code>$this->options['encryptedFields']</code> |
432 | 424 | </MixedArgument> |
433 | 425 | </file> |
|
446 | 438 | </MixedMethodCall> |
447 | 439 | </file> |
448 | 440 | <file src="src/Operation/DatabaseCommand.php"> |
449 | | - <DocblockTypeContradiction occurrences="1"> |
450 | | - <code>! is_array($command) && ! is_object($command)</code> |
451 | | - </DocblockTypeContradiction> |
452 | 441 | <MixedArgument occurrences="1"> |
453 | 442 | <code>$this->options['typeMap']</code> |
454 | 443 | </MixedArgument> |
|
458 | 447 | </MixedAssignment> |
459 | 448 | </file> |
460 | 449 | <file src="src/Operation/Delete.php"> |
461 | | - <DocblockTypeContradiction occurrences="1"> |
462 | | - <code>! is_array($filter) && ! is_object($filter)</code> |
463 | | - </DocblockTypeContradiction> |
464 | 450 | <MixedArgument occurrences="1"> |
465 | 451 | <code>$this->options['writeConcern']</code> |
466 | 452 | </MixedArgument> |
|
476 | 462 | </MixedMethodCall> |
477 | 463 | </file> |
478 | 464 | <file src="src/Operation/Distinct.php"> |
479 | | - <DocblockTypeContradiction occurrences="1"> |
480 | | - <code>! is_array($filter) && ! is_object($filter)</code> |
481 | | - </DocblockTypeContradiction> |
482 | 465 | <MixedArgument occurrences="1"> |
483 | 466 | <code>$this->options['typeMap']</code> |
484 | 467 | </MixedArgument> |
|
516 | 499 | <code>$options['writeConcern']</code> |
517 | 500 | </MixedAssignment> |
518 | 501 | </file> |
| 502 | + <file src="src/Operation/DropEncryptedCollection.php"> |
| 503 | + <MixedArgument occurrences="1"> |
| 504 | + <code>$options['encryptedFields']</code> |
| 505 | + </MixedArgument> |
| 506 | + </file> |
519 | 507 | <file src="src/Operation/DropIndexes.php"> |
520 | 508 | <MixedArgument occurrences="1"> |
521 | 509 | <code>$this->options['typeMap']</code> |
|
540 | 528 | </MixedAssignment> |
541 | 529 | </file> |
542 | 530 | <file src="src/Operation/Find.php"> |
543 | | - <DocblockTypeContradiction occurrences="1"> |
544 | | - <code>! is_array($filter) && ! is_object($filter)</code> |
545 | | - </DocblockTypeContradiction> |
546 | 531 | <MixedArgument occurrences="1"> |
547 | 532 | <code>$this->options['typeMap']</code> |
548 | 533 | </MixedArgument> |
|
583 | 568 | </MixedReturnStatement> |
584 | 569 | </file> |
585 | 570 | <file src="src/Operation/FindOneAndDelete.php"> |
586 | | - <DocblockTypeContradiction occurrences="1"> |
587 | | - <code>! is_array($filter) && ! is_object($filter)</code> |
588 | | - </DocblockTypeContradiction> |
| 571 | + <MixedAssignment occurrences="1"> |
| 572 | + <code>$options['fields']</code> |
| 573 | + </MixedAssignment> |
589 | 574 | </file> |
590 | 575 | <file src="src/Operation/FindOneAndReplace.php"> |
591 | | - <DocblockTypeContradiction occurrences="2"> |
592 | | - <code>! is_array($filter) && ! is_object($filter)</code> |
593 | | - <code>! is_array($replacement) && ! is_object($replacement)</code> |
594 | | - </DocblockTypeContradiction> |
| 576 | + <MixedAssignment occurrences="1"> |
| 577 | + <code>$options['fields']</code> |
| 578 | + </MixedAssignment> |
595 | 579 | <MixedOperand occurrences="1"> |
596 | 580 | <code>$options['returnDocument']</code> |
597 | 581 | </MixedOperand> |
598 | 582 | </file> |
599 | 583 | <file src="src/Operation/FindOneAndUpdate.php"> |
600 | | - <DocblockTypeContradiction occurrences="2"> |
601 | | - <code>! is_array($filter) && ! is_object($filter)</code> |
| 584 | + <DocblockTypeContradiction occurrences="1"> |
602 | 585 | <code>! is_array($update) && ! is_object($update)</code> |
603 | 586 | </DocblockTypeContradiction> |
| 587 | + <MixedAssignment occurrences="1"> |
| 588 | + <code>$options['fields']</code> |
| 589 | + </MixedAssignment> |
604 | 590 | <MixedOperand occurrences="1"> |
605 | 591 | <code>$options['returnDocument']</code> |
606 | 592 | </MixedOperand> |
607 | 593 | </file> |
608 | 594 | <file src="src/Operation/InsertMany.php"> |
609 | | - <DocblockTypeContradiction occurrences="1"> |
610 | | - <code>! is_array($document) && ! is_object($document)</code> |
611 | | - </DocblockTypeContradiction> |
612 | 595 | <MixedAssignment occurrences="4"> |
613 | 596 | <code>$insertedIds[$i]</code> |
614 | 597 | <code>$options[$option]</code> |
|
621 | 604 | </MixedMethodCall> |
622 | 605 | </file> |
623 | 606 | <file src="src/Operation/InsertOne.php"> |
624 | | - <DocblockTypeContradiction occurrences="1"> |
625 | | - <code>! is_array($document) && ! is_object($document)</code> |
626 | | - </DocblockTypeContradiction> |
627 | 607 | <MixedAssignment occurrences="4"> |
628 | 608 | <code>$insertedId</code> |
629 | 609 | <code>$options[$option]</code> |
|
692 | 672 | <code>isInTransaction</code> |
693 | 673 | </MixedMethodCall> |
694 | 674 | </file> |
695 | | - <file src="src/Operation/ReplaceOne.php"> |
696 | | - <DocblockTypeContradiction occurrences="1"> |
697 | | - <code>! is_array($replacement) && ! is_object($replacement)</code> |
698 | | - </DocblockTypeContradiction> |
699 | | - </file> |
700 | 675 | <file src="src/Operation/Update.php"> |
701 | | - <DocblockTypeContradiction occurrences="2"> |
702 | | - <code>! is_array($filter) && ! is_object($filter)</code> |
| 676 | + <DocblockTypeContradiction occurrences="1"> |
703 | 677 | <code>! is_array($update) && ! is_object($update)</code> |
704 | 678 | </DocblockTypeContradiction> |
705 | 679 | <MixedArgument occurrences="1"> |
|
767 | 741 | </MixedAssignment> |
768 | 742 | </file> |
769 | 743 | <file src="src/functions.php"> |
770 | | - <DocblockTypeContradiction occurrences="2"> |
771 | | - <code>! is_array($document) && ! is_object($document)</code> |
| 744 | + <DocblockTypeContradiction occurrences="1"> |
772 | 745 | <code>is_array($document)</code> |
773 | 746 | </DocblockTypeContradiction> |
774 | | - <MixedArgument occurrences="1"> |
| 747 | + <MixedArgument occurrences="2"> |
| 748 | + <code>$stage</code> |
775 | 749 | <code>$wireVersionForWriteStageOnSecondary</code> |
776 | 750 | </MixedArgument> |
777 | 751 | <MixedArgumentTypeCoercion occurrences="1"> |
|
784 | 758 | <code>$typeMap['fieldPaths'][$fieldPath]</code> |
785 | 759 | <code>$typeMap['fieldPaths'][substr($fieldPath, 0, -2)]</code> |
786 | 760 | </MixedArrayAssignment> |
787 | | - <MixedAssignment occurrences="5"> |
| 761 | + <MixedAssignment occurrences="6"> |
788 | 762 | <code>$element[$key]</code> |
| 763 | + <code>$stage</code> |
789 | 764 | <code>$type</code> |
790 | 765 | <code>$typeMap['fieldPaths'][$fieldPath . '.' . $existingFieldPath]</code> |
791 | 766 | <code>$typeMap['fieldPaths'][$fieldPath]</code> |
|
0 commit comments