File tree 2 files changed +16
-0
lines changed
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -255,6 +255,16 @@ if ($required) {
255
255
} // @codeCoverageIgnore
256
256
```
257
257
258
+ ### Static Analysis
259
+
260
+ PHPStan can be used to run a static analysis of the PHPCap code. Use the following command in the top-level directory:
261
+
262
+ ./vendor/bin/phpstan
263
+
264
+ The configuration for PHPStan is in the following file in the top-level directory:
265
+
266
+ phpstan.neon
267
+
258
268
### Local Tests
259
269
The directory __ tests/local/__ has been set up so that all files in it, except for the README file, will be ignored by Git.
260
270
This directory is intended as a place for developers to places tests for changes they are working on.
Original file line number Diff line number Diff line change 30
30
< li class ="active "> < a href ="#Development "> Development</ a > </ li >
31
31
< ul class ="intraPage ">
32
32
< li class ="active "> < a href ="#Automated Tests "> Automated Tests</ a > </ li >
33
+ < li class ="active "> < a href ="#Static Analysis "> Static Analysis</ a > </ li >
33
34
< li class ="active "> < a href ="#Local Tests "> Local Tests</ a > </ li >
34
35
< li class ="active "> < a href ="#Coding Standard Compliance "> Coding Standard Compliance</ a > </ li >
35
36
< li class ="active "> < a href ="#Documentation "> Documentation</ a > </ li >
@@ -286,6 +287,11 @@ <h5>Code Coverage</h5>
286
287
$message = 'No field was specified.';
287
288
$this->errorHandler->throwException($message, ErrorHandlerInterface::INVALID_ARGUMENT);
288
289
} // @codeCoverageIgnore</ code > </ pre > </ div >
290
+ < h3 id ="Static Analysis "> Static Analysis</ h3 >
291
+ < p > PHPStan can be used to run a static analysis of the PHPCap code. Use the following command in the top-level directory:</ p >
292
+ < div class ="description "> < pre > < code > ./vendor/bin/phpstan</ code > </ pre > </ div >
293
+ < p > The configuration for PHPStan is in the following file in the top-level directory:</ p >
294
+ < div class ="description "> < pre > < code > phpstan.neon</ code > </ pre > </ div >
289
295
< h3 id ="Local Tests "> Local Tests</ h3 >
290
296
< p > The directory < strong > tests/local/</ strong > has been set up so that all files in it, except for the README file, will be ignored by Git.
291
297
This directory is intended as a place for developers to places tests for changes they are working on.</ p >
You can’t perform that action at this time.
0 commit comments