Skip to content

Commit 958a06c

Browse files
author
Philipp Handle
committed
fixed example output, set version, removed ecs
1 parent abe6bba commit 958a06c

File tree

2 files changed

+41
-11
lines changed

2 files changed

+41
-11
lines changed

composer.json

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,18 @@
2323
},
2424
"require": {
2525
"php": "^7.3",
26-
"phpstan/phpstan": "^1.2.0",
26+
"phpstan/phpstan": ">=0.12.7 <=1.2.0",
2727
"nette/utils": "^3.1.0",
2828
"webmozart/path-util": "^2.3.0",
2929
"thecodingmachine/safe": "^1.0.3",
3030
"nette/neon": "^3.1.0"
3131
},
3232
"license": "MIT",
33-
"require-dev": {
34-
"symplify/easy-coding-standard": "^9.4.70"
35-
},
3633
"scripts": {
3734
"check": [
38-
"@check-cs",
3935
"@phpstan"
4036
],
41-
"ecs": "ecs check src",
42-
"ecs-fix": "ecs check src --fix",
4337
"phpstan": "phpstan analyse src --level max --error-format=fileoutput",
44-
"phpstan-test": "phpstan analyse src tests --level max --error-format=fileoutput --no-progress",
45-
"check-cs-test": "ecs check tests "
38+
"phpstan-test": "phpstan analyse src tests --level max --error-format=fileoutput --no-progress"
4639
}
4740
}

example/phpstan.html

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,49 @@
6969
<title>PHPStan analysis result</title>
7070
</head>
7171
<h1>PHPStan analysis result</h1>
72-
<div class="time">2021-11-29 08:35:31</div>
72+
<div class="time">2021-11-29 12:58:44</div>
7373

7474

7575
<div>
7676
<table>
77-
77+
<thead>
78+
<tr>
79+
<th colspan="2" class="section">Files with errors: 1</th>
80+
</tr>
81+
</thead>
82+
<thead>
83+
<tr>
84+
<th colspan="2">/Users/phandle/PhpstormProjects/PHPStan-FileOutput/tests/MessedUpClass.php (3×)</th>
85+
</tr>
86+
</thead>
87+
<tr class="error">
88+
<td class="line">
89+
<a href='editor://open/?file=/Users/phandle/PhpstormProjects/PHPStan-FileOutput/tests/MessedUpClass.php&line=25'>25</a>
90+
</td>
91+
<td>
92+
Method <b>noximo\MessedUpClass::doSOmething()</b> should return <b>string</b> but returns <b>int.</b> <br>
93+
<small class="regex">- '#Method noximo\\MessedUpClass\:\:doSOmething\(\) should return string but returns int#'</small>
94+
</td>
95+
</tr>
96+
<tr class="error">
97+
<td class="line">
98+
<a href='editor://open/?file=/Users/phandle/PhpstormProjects/PHPStan-FileOutput/tests/MessedUpClass.php&line=23'>23</a>
99+
</td>
100+
<td>
101+
PHPDoc tag <b>@param</b> for parameter <b>$problem</b> with type <b>string</b> is incompatible with native type <b>int.</b> <br>
102+
<small class="regex">- '#PHPDoc tag @param for parameter \$problem with type string is incompatible with native type int#'</small>
103+
</td>
104+
</tr>
105+
<tr class="error">
106+
<td class="line">
107+
<a href='editor://open/?file=/Users/phandle/PhpstormProjects/PHPStan-FileOutput/tests/MessedUpClass.php&line=23'>23</a>
108+
</td>
109+
<td>
110+
PHPDoc tag <b>@return</b> with type <b>int</b> is incompatible with native type <b>string.</b> <br>
111+
<small class="regex">- '#PHPDoc tag @return with type int is incompatible with native type string#'</small>
112+
</td>
113+
</tr>
114+
78115
</table>
79116
<div id="thanks">
80117
This file was made thanks to

0 commit comments

Comments
 (0)