Skip to content

Commit cd99188

Browse files
committed
Update example and more info in README
1 parent f621f7d commit cd99188

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Please see [WooCommerce Stubs](https://github.com/php-stubs/woocommerce-stubs)
4444
- Avoid using core constants, use core functions or `MYPLUGIN_PATH`
4545
- Avoid bad parts of PHP
4646
- functions: eval, extract, compact, list
47+
- [type juggling](https://www.php.net/manual/en/language.types.type-juggling.php): `$a = '15'; if ($a) ...`
4748
- If you need robust code try avoiding all kinds of type casting (e.g. `if` needs a boolean),
4849
see [Variable handling functions](https://www.php.net/manual/en/ref.var.php)
4950
- If you are not bound by PHP 5.x consider following

example/phpstan.neon.dist

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ includes:
99
parameters:
1010
level: max
1111
inferPrivatePropertyTypeFromConstructor: true
12-
# autoload_files:
12+
# bootstrapFiles:
1313
# # Missing constants, function and class stubs
1414
# - %currentWorkingDirectory%/tests/phpstan/bootstrap.php
15+
# scanFiles:
1516
# # Plugin stubs
1617
# - %currentWorkingDirectory%/tests/phpstan/PLUGIN-stubs.php
1718
# # Procedural code

0 commit comments

Comments
 (0)