File tree Expand file tree Collapse file tree 2 files changed +22
-22
lines changed
src/Command/ErrorFormatter
tests/PHPStan/Command/ErrorFormatter Expand file tree Collapse file tree 2 files changed +22
-22
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ public function formatErrors(
8989 $ filePath = $ error ->getTraitFilePath () ?? $ error ->getFilePath ();
9090 if ($ error ->getIdentifier () !== null && $ error ->canBeIgnored ()) {
9191 $ message .= "\n" ;
92- $ message .= '🪪 ' . $ error ->getIdentifier ();
92+ $ message .= '🪪 ' . $ error ->getIdentifier ();
9393 }
9494 if ($ error ->getTip () !== null ) {
9595 $ tip = $ error ->getTip ();
@@ -99,11 +99,11 @@ public function formatErrors(
9999 if (str_contains ($ tip , "\n" )) {
100100 $ lines = explode ("\n" , $ tip );
101101 foreach ($ lines as $ line ) {
102- $ message .= '💡 ' . ltrim ($ line , ' • ' ) . "\n" ;
102+ $ message .= '💡 ' . ltrim ($ line , ' • ' ) . "\n" ;
103103 }
104104 $ message = rtrim ($ message , "\n" );
105105 } else {
106- $ message .= '💡 ' . $ tip ;
106+ $ message .= '💡 ' . $ tip ;
107107 }
108108 }
109109 if (is_string ($ this ->editorUrl )) {
@@ -123,7 +123,7 @@ public function formatErrors(
123123 $ title = $ this ->relativePathHelper ->getRelativePath ($ filePath );
124124 }
125125
126- $ message .= "\n✏️ <href= " . OutputFormatter::escape ($ url ) . '> ' . $ title . '</> ' ;
126+ $ message .= "\n✏️ <href= " . OutputFormatter::escape ($ url ) . '> ' . $ title . '</> ' ;
127127 }
128128
129129 if (
Original file line number Diff line number Diff line change @@ -94,14 +94,14 @@ public function dataFormatterOutputProvider(): iterable
9494 4 Foo
9595 ------ -------------------------------------------------------------------
9696
97- ------ ----------
97+ ------ -----------
9898 Line foo.php
99- ------ ----------
99+ ------ -----------
100100 1 Foo<Bar>
101101 5 Bar
102102 Bar2
103- 💡 a tip
104- ------ ----------
103+ 💡 a tip
104+ ------ -----------
105105
106106 [ERROR] Found 4 errors
107107
@@ -143,14 +143,14 @@ public function dataFormatterOutputProvider(): iterable
143143 4 Foo
144144 ------ -------------------------------------------------------------------
145145
146- ------ ----------
146+ ------ -----------
147147 Line foo.php
148- ------ ----------
148+ ------ -----------
149149 1 Foo<Bar>
150150 5 Bar
151151 Bar2
152- 💡 a tip
153- ------ ----------
152+ 💡 a tip
153+ ------ -----------
154154
155155 -- -----------------------
156156 Error
@@ -190,13 +190,13 @@ public function dataFormatterOutputProvider(): iterable
190190 'numGenericErrors ' => 0 ,
191191 'verbose ' => false ,
192192 'extraEnvVars ' => [],
193- 'expected ' => ' ------ ---------------
193+ 'expected ' => ' ------ ----------------
194194 Line foo.php
195- ------ ---------------
195+ ------ ----------------
196196 5 Foobar\Buz
197- 🪪 foobar.buz
198- 💡 a tip
199- ------ ---------------
197+ 🪪 foobar.buz
198+ 💡 a tip
199+ ------ ----------------
200200
201201
202202 [ERROR] Found 1 error
@@ -211,13 +211,13 @@ public function dataFormatterOutputProvider(): iterable
211211 'numGenericErrors ' => 0 ,
212212 'verbose ' => true ,
213213 'extraEnvVars ' => [],
214- 'expected ' => ' ------ ---------------
214+ 'expected ' => ' ------ ----------------
215215 Line foo.php
216- ------ ---------------
216+ ------ ----------------
217217 5 Foobar\Buz
218- 🪪 foobar.buz
219- 💡 a tip
220- ------ ---------------
218+ 🪪 foobar.buz
219+ 💡 a tip
220+ ------ ----------------
221221
222222
223223 [ERROR] Found 1 error
You can’t perform that action at this time.
0 commit comments