1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-10 15:09:04 +01:00
psalm/src/Psalm/Issue/ArgumentIssue.php

22 lines
453 B
PHP
Raw Normal View History

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