mirror of
https://github.com/danog/psalm.git
synced 2025-01-10 06:58:41 +01:00
32eaf12d40
This also allows (Possibly)UnusedProperty to be suppressed with `referencedProperty` attribute in psalm.xml Fixes vimeo/psalm#8874
23 lines
452 B
PHP
23 lines
452 B
PHP
<?php
|
|
|
|
namespace Psalm\Issue;
|
|
|
|
use Psalm\CodeLocation;
|
|
|
|
use function strtolower;
|
|
|
|
final class UnusedMethod extends MethodIssue
|
|
{
|
|
public const ERROR_LEVEL = -2;
|
|
public const SHORTCODE = 76;
|
|
|
|
public function __construct(
|
|
string $message,
|
|
CodeLocation $code_location,
|
|
string $method_id
|
|
) {
|
|
parent::__construct($message, $code_location, $method_id);
|
|
$this->dupe_key = strtolower($method_id);
|
|
}
|
|
}
|