File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -210,12 +210,28 @@ These tools have already been integrated into our CI/CD workflow to minimize una
210210are expected that their code will pass these two. In your local machine, you can manually run these tools
211211so that you can fix whatever errors that pop up with your submission.
212212
213+ #### PHPStan
214+
213215PHPStan is expected to scan the entire framework by running this command in your terminal:
214216
215217``` console
216218vendor/bin/phpstan analyse
217219```
218220
221+ See also:
222+ - [ PHPDocs Basics] ( https://phpstan.org/writing-php-code/phpdocs-basics )
223+ - [ PHPDoc Types] ( https://phpstan.org/writing-php-code/phpdoc-types )
224+
225+ If PHPStan errors cannot be resolved by any means, or if the PHPStan error is
226+ false positive and should be ignored, the baseline can be updated with the following
227+ command:
228+
229+ ``` console
230+ vendor/bin/phpstan analyze --generate-baseline phpstan-baseline.php
231+ ```
232+
233+ #### Rector
234+
219235Rector, on the other hand, can be run on the specific files you modified or added:
220236
221237``` console
You can’t perform that action at this time.
0 commit comments