mirror of
https://github.com/danog/psalm.git
synced 2024-12-05 13:10:49 +01:00
static::class
This commit is contained in:
parent
46801c4b98
commit
f788fec540
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user