1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-05 13:10:49 +01:00

static::class

This commit is contained in:
orklah 2021-09-26 22:56:52 +02:00
parent 46801c4b98
commit f788fec540

View File

@ -2,11 +2,9 @@
namespace Psalm\Issue;
use Psalm\CodeLocation;
use Psalm\Config;
use function array_pop;
use function explode;
use function get_called_class;
abstract class CodeIssue
{
@ -93,7 +91,7 @@ abstract class CodeIssue
$selection_bounds = $location->getSelectionBounds();
$snippet_bounds = $location->getSnippetBounds();
$fqcn_parts = explode('\\', get_called_class());
$fqcn_parts = explode('\\', static::class);
$issue_type = array_pop($fqcn_parts);
return new \Psalm\Internal\Analyzer\IssueData(