mirror of
https://github.com/danog/psalm.git
synced 2025-01-10 06:58:41 +01:00
25 lines
472 B
PHP
25 lines
472 B
PHP
<?php
|
|
|
|
namespace Psalm\Issue;
|
|
|
|
use Psalm\CodeLocation;
|
|
|
|
use function strtolower;
|
|
|
|
abstract class ArgumentIssue extends CodeIssue
|
|
{
|
|
/**
|
|
* @var ?string
|
|
*/
|
|
public $function_id;
|
|
|
|
public function __construct(
|
|
string $message,
|
|
CodeLocation $code_location,
|
|
?string $function_id = null
|
|
) {
|
|
parent::__construct($message, $code_location);
|
|
$this->function_id = $function_id ? strtolower($function_id) : null;
|
|
}
|
|
}
|