diff --git a/README.md b/README.md index 8604255..2b3bd0b 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Additionally, there are other various config changes to ignore errors, etc. # Usage Add to your Composer project that is already using PHPStan. This package is compatible with `phpstan/extension-installer` -so nothing outside of `composer require --dev "gravitywiz/phpstan"` is needed. +so nothing outside of `composer require --dev "gravitywiz/phpstan-gwiz"` is needed. If you're not using `phpstan/extension-installer`, the files can be added to your `phpstan.neon` file manually by adding them to `includes` like so: diff --git a/gravityforms.neon b/gravityforms.neon index 51ab019..88e8531 100644 --- a/gravityforms.neon +++ b/gravityforms.neon @@ -1,6 +1,7 @@ parameters: stubFiles: - stubs/gravityforms/rgar.stub + - stubs/gravityforms/rgars.stub ignoreErrors: - # gf_apply_filters only specifies two params. It uses func_get_args() diff --git a/stubs/gravityforms/rgars.stub b/stubs/gravityforms/rgars.stub new file mode 100644 index 0000000..9d4953f --- /dev/null +++ b/stubs/gravityforms/rgars.stub @@ -0,0 +1,17 @@ +