2020-07-16 15:49:59 +02:00
|
|
|
<?php
|
|
|
|
namespace Psalm\Issue;
|
|
|
|
|
2021-12-03 20:11:20 +01:00
|
|
|
use Psalm\CodeLocation;
|
|
|
|
|
2020-07-16 15:49:59 +02:00
|
|
|
use function strtolower;
|
|
|
|
|
|
|
|
abstract class VariableIssue extends CodeIssue
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public $var_name;
|
|
|
|
|
|
|
|
public function __construct(
|
2020-09-07 01:36:47 +02:00
|
|
|
string $message,
|
2021-12-03 20:11:20 +01:00
|
|
|
CodeLocation $code_location,
|
2020-09-07 01:36:47 +02:00
|
|
|
string $var_name
|
2020-07-16 15:49:59 +02:00
|
|
|
) {
|
|
|
|
parent::__construct($message, $code_location);
|
|
|
|
$this->var_name = strtolower($var_name);
|
|
|
|
}
|
|
|
|
}
|