Unused method, property, variable or parameter

  • Minor
  • Deadcode

More information: https://insight.symfony.com/what-we-analyse/php.unused_local_variable_or_private_member

Updated rule! We've recently tweaked this rule. This may explain the disappearance of false positives, or new suggestions not linked to any activity in the code.
in src/Mongo/Result.php, line 42
  1. protected $myResultCursor = null;
  2. /**
  3. * @var MongoServiceInterface
  4. */
  5. private $factory;

    This factory attribute is declared but never used. You should remove it.

    Time to fix: about 15 minutes
    Open Issue Permalink
    Last edited by Peter Petermann
  6. /**
  7. * @var string
  8. */
  9. private $collection;