diff --git a/src/Phan/PhanConvertToSubset.php b/src/Phan/PhanConvertToSubset.php index 061b447..513a821 100644 --- a/src/Phan/PhanConvertToSubset.php +++ b/src/Phan/PhanConvertToSubset.php @@ -12,9 +12,9 @@ final class PhanConvertToSubset extends AbstractConverter private const SEVERITY_LEVELS = [ 0 => 'info', 5 => 'minor', - 10 => 'critical' + 10 => 'critical', ]; - + public function convertToSubset(): void { try { diff --git a/tests/Phan/PhanConverterTest.php b/tests/Phan/PhanConverterTest.php index 99bcfd1..b47e707 100644 --- a/tests/Phan/PhanConverterTest.php +++ b/tests/Phan/PhanConverterTest.php @@ -40,6 +40,7 @@ public function testItCanConvertPhanJsonToSubset(): void [ 'description' => '(Phan) UndefError PhanUndeclaredClassConstant Reference to constant class from undeclared class \PhpParser\Node\Stmt\ClassMethod', 'fingerprint' => 'e8547906ee21b4f8e8804de980a9d239', + 'severity' => 'critical', 'location' => [ 'path' => 'app/Class.php', 'lines' => [ diff --git a/tests/Phan/fixtures/output.json b/tests/Phan/fixtures/output.json index e0fa56a..0eb2334 100644 --- a/tests/Phan/fixtures/output.json +++ b/tests/Phan/fixtures/output.json @@ -2,6 +2,7 @@ { "description": "(Phan) UndefError PhanUndeclaredClassConstant Reference to constant class from undeclared class \\PhpParser\\Node\\Stmt\\ClassMethod", "fingerprint": "e8547906ee21b4f8e8804de980a9d239", + "severity": "critical", "location": { "path": "app/Class.php", "lines": { @@ -10,4 +11,4 @@ } } } -] \ No newline at end of file +] diff --git a/tests/TestCase.php b/tests/TestCase.php index bbc923d..2ffac58 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -34,6 +34,7 @@ public function multipleConvertersProvider(): array 'output' => [ 'description' => '(Phan) UndefError PhanUndeclaredClassConstant Reference to constant class from undeclared class \PhpParser\Node\Stmt\ClassMethod', 'fingerprint' => 'e8547906ee21b4f8e8804de980a9d239', + 'severity' => 'critical', 'location' => [ 'path' => 'app/Class.php', 'lines' => [ diff --git a/tests/fixtures/output.json b/tests/fixtures/output.json index cd85bec..b9b17e5 100644 --- a/tests/fixtures/output.json +++ b/tests/fixtures/output.json @@ -2,6 +2,7 @@ { "description": "(Phan) UndefError PhanUndeclaredClassConstant Reference to constant class from undeclared class \\PhpParser\\Node\\Stmt\\ClassMethod", "fingerprint": "e8547906ee21b4f8e8804de980a9d239", + "severity": "critical", "location": { "path": "app/Class.php", "lines": { @@ -61,4 +62,4 @@ } } } -] \ No newline at end of file +]