mirror of
https://github.com/danog/psalm.git
synced 2024-12-15 02:47:02 +01:00
f29826b958
This should give a small performance boost. Part of #1837. The change is enforced via phpcs and can be autofixed with phpcbf.
27 lines
589 B
PHP
27 lines
589 B
PHP
<?php
|
|
namespace Psalm\Issue;
|
|
|
|
use function strtolower;
|
|
|
|
abstract class ArgumentIssue extends CodeIssue
|
|
{
|
|
/**
|
|
* @var ?string
|
|
*/
|
|
public $function_id;
|
|
|
|
/**
|
|
* @param string $message
|
|
* @param \Psalm\CodeLocation $code_location
|
|
* @param string $function_id
|
|
*/
|
|
public function __construct(
|
|
$message,
|
|
\Psalm\CodeLocation $code_location,
|
|
string $function_id = null
|
|
) {
|
|
parent::__construct($message, $code_location);
|
|
$this->function_id = $function_id ? strtolower($function_id) : null;
|
|
}
|
|
}
|