Skip to content

Commit 9fbd371

Browse files
committed
Ensure standardised casing on type
1 parent 09be581 commit 9fbd371

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/CodeIssue.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function __construct(
4646
$this->column = $column;
4747
$this->source = $source;
4848
$this->message = $message;
49-
$this->type = $type;
49+
$this->type = strtolower($type);
5050
$this->severity = $severity;
5151
$this->fixable = $fixable;
5252
}
@@ -100,6 +100,8 @@ public function getMessage()
100100
}
101101

102102
/**
103+
* 'error' or 'warning'
104+
*
103105
* @return string
104106
*/
105107
public function getType()

0 commit comments

Comments
 (0)