Unused method, property, variable or parameter

  • Minor
  • Deadcode

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

  1. ));
  2. continue;
  3. }
  4. $abs['properties'][$name] = $this->getPropInfo($abs, $reflectionProperty);
  5. }
  6. $isAncestor = true;

    This isAncestor local variable is declared but never used. You should remove it.

    Time to fix: about 15 minutes
    Open Issue Permalink
    Last edited by Brad Kent
  7. $reflectionObject = $reflectionObject->getParentClass();
  8. }
  9. $this->addPropertiesPhpDoc($abs); // magic properties documented via phpDoc
  10. $this->addPropertiesDebug($abs); // use __debugInfo() values if useDebugInfo' && method exists
  11. $properties = $abs['properties'];