Skip to content

Commit 85cc99c

Browse files
committed
Reduce PHP requirement to 5.5
1 parent 9fbd371 commit 85cc99c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
],
1313
"minimum-stability": "stable",
1414
"require": {
15-
"php": ">=5.6",
16-
"ext-json": "*"
15+
"php": ">=5.5",
16+
"ext-json": "*",
17+
"ext-dom": "*"
1718
},
1819
"autoload": {
1920
"psr-4": {

src/Phpcs/ReportType/CsvReport.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace PlotBox\PhpcsParse\Phpcs\ReportType;
44

55
use PlotBox\PhpcsParse\CodeIssue;
6+
use RuntimeException;
67

78
class CsvReport implements Report
89
{
@@ -13,7 +14,7 @@ public function fromString($content)
1314
{
1415
$foundIssues = explode("\n", $content);
1516
if (preg_match('/^ERROR:/', $foundIssues[0])) {
16-
throw new \RuntimeException($foundIssues[0]);
17+
throw new RuntimeException($foundIssues[0]);
1718
}
1819

1920
$parsedIssues = [];

0 commit comments

Comments
 (0)