Skip to content

Commit 70a2508

Browse files
committed
Revert "example errors"
This reverts commit 1de5e32.
1 parent aaa5c75 commit 70a2508

2 files changed

Lines changed: 0 additions & 34 deletions

File tree

‎src/Command/ErrorFormatter/CheckstyleErrorFormatter.php‎

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
use PHPStan\File\RelativePathHelper;
1111
use function count;
1212
use function htmlspecialchars;
13-
use function PHPStan\debugScope;
1413
use function sprintf;
1514
use const ENT_COMPAT;
1615
use const ENT_XML1;
@@ -125,20 +124,4 @@ private function groupByFile(AnalysisResult $analysisResult): array
125124
return $files;
126125
}
127126

128-
/** @param 1 $i */
129-
public function demoErrorAnnotations(int $i): array
130-
{
131-
if ($i === 1) {
132-
echo 1; // @phpstan-ignore variable.undefined
133-
}
134-
135-
debugScope();
136-
return [$this->demoWithoutTip()];
137-
}
138-
139-
private function demoWithoutTip(): int
140-
{
141-
return 'not an int';
142-
}
143-
144127
}

‎src/Command/ErrorFormatter/RawErrorFormatter.php‎

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace PHPStan\Command\ErrorFormatter;
44

5-
use Exception;
65
use PHPStan\Command\AnalysisResult;
76
use PHPStan\Command\Output;
87
use PHPStan\DependencyInjection\AutowiredService;
@@ -50,20 +49,4 @@ public function formatErrors(
5049
return $analysisResult->hasErrors() ? 1 : 0;
5150
}
5251

53-
public function demoErrorAnnotations(): void
54-
{
55-
$this->demoObjectShape(new Exception());
56-
$rocket = '🚀 launch 😃';
57-
if ($rocket === '🐢 slow') {
58-
return;
59-
}
60-
}
61-
62-
/**
63-
* @param object{foo: int, bar: string} $o
64-
*/
65-
private function demoObjectShape(object $o): void
66-
{
67-
}
68-
6952
}

0 commit comments

Comments
 (0)