fgm / mongodb

Drupal MongoDB module suite. General maintenance is on drupal.org

Home Page:https://drupal.org/project/mongodb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

False positive for $this

fgm opened this issue · comments

The analyzer warns that $this is undefined even when used in a non-static method in a Trait, although the code can only be reached if there is an instance of an object carrying the trait, hence a valid value for $this.

see https://scrutinizer-ci.com/g/FGM/mongodb/inspections/96d420f0-65e2-42a4-9358-222aef4c6d01/issues/files/mongodb_path/src/Tests/MongoDbPathTestTrait.php?status=new&orderField=path&order=asc#inspectioncomment-1141247226

Scrutinizer issue, not related to the module.