First off, my apologies if there's an issue for this somewhere and I've missed it, or this is intended behavior and this is a feature request instead.
Describe the bug
When finding all references to a method on a derived class that overrides an inherited method, results include references to the inherited method along with all overrides of it in other derived classes.
To Reproduce
(Normally with PSR-4 autoloading via Composer, but here's some example code in one file)
<?php
namespace MyProject;
class Command
{
public function execute()
{
}
}
class ThisCommand extends Command
{
public function execute()
{
}
}
class ThatCommand extends Command
{
public function execute()
{
}
}
class Main
{
public function doThings()
{
$thisCmd = new ThisCommand();
$thisCmd->execute();
$thatCmd = new ThatCommand();
$thatCmd->execute();
$cmd = new Command();
$cmd->execute();
}
}
"Find all references" with the cursor on either the invocation of ThisCommand::execute(), or its definition.
Expected behavior
Only the definition and
$thisCmd->execute();
are found.
Platform and version
Intelephense version: 1.6.3 (premium)
OS: MacOS Big Sur, 11.2.1
First off, my apologies if there's an issue for this somewhere and I've missed it, or this is intended behavior and this is a feature request instead.
Describe the bug
When finding all references to a method on a derived class that overrides an inherited method, results include references to the inherited method along with all overrides of it in other derived classes.
To Reproduce (Normally with PSR-4 autoloading via Composer, but here's some example code in one file)
ThisCommand::execute()
, or its definition.Expected behavior
Only the definition and
are found.
Platform and version
Intelephense version: 1.6.3 (premium) OS: MacOS Big Sur, 11.2.1