2019-04-26 00:02:19 +02:00
|
|
|
<?php
|
|
|
|
namespace Psalm\Issue;
|
|
|
|
|
2019-06-26 22:52:29 +02:00
|
|
|
use function strtolower;
|
|
|
|
|
2019-04-26 00:02:19 +02:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|