1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-15 02:47:02 +01:00
psalm/src/Psalm/Issue/MethodIssue.php
LeSuisse f29826b958 Fully qualify constants and function calls (#1849)
This should give a small performance boost.
Part of #1837.

The change is enforced via phpcs and can be autofixed
with phpcbf.
2019-06-26 16:52:29 -04:00

27 lines
540 B
PHP

<?php
namespace Psalm\Issue;
use function strtolower;
abstract class MethodIssue extends CodeIssue
{
/**
* @var string
*/
public $method_id;
/**
* @param string $message
* @param \Psalm\CodeLocation $code_location
* @param string $method_id
*/
public function __construct(
$message,
\Psalm\CodeLocation $code_location,
$method_id
) {
parent::__construct($message, $code_location);
$this->method_id = strtolower($method_id);
}
}