1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00
psalm/src/Psalm/Issue/VariableIssue.php
orklah 8c7423505a
add native param types (#4137)
* add native param types

* redundant phpdoc

* add more param types and adds "?" to nullable types

* remove redundant phpdoc

* add more param types and remove redundant phpdoc

* add more param types and remove redundant phpdoc
2020-09-06 19:36:47 -04:00

22 lines
410 B
PHP

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