Rostislav Wolny
df6a955f0c
Fix deprecation warnings coming from pQuery library
...
[MAILPOET-3980]
2021-12-13 09:36:43 +01:00
Rostislav Wolny
54414b4174
Add WooCommercePackages stubs to PHPStan
...
I had to move loading those stubs to bootstrap files because it was not able to load the class
when placed in scanFiles.
Note this is also recommended in documentation https://github.com/php-stubs/woocommerce-stubs
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00
Rodrigo Primo
e59992cc16
Fix checkGenericClassInNonGenericObjectType PHPStan errors
...
This commit removes the checkGenericClassInNonGenericObjectType flag
from PHPStan configuration files and fixes all associated errors in our
code base.
[MAILPOET-3236]
2021-08-09 12:58:56 +02:00
Rodrigo Primo
f0dc0b3556
Stop excluding the PHPStan checkMissingTypehints error
...
This check doesn't produce any errors so we don't need to exclude it
from our checks. Note that this only removes the exclusion of this error
from phpstan.neon. The same error check is kept in phpstan-tests.neon as
there are some change that we need to make to two tests before being
able to update this file as well.
[MAILPOET-3236]
2021-08-09 12:58:56 +02:00
Rodrigo Primo
30b4b3e073
Stop excluding the PHPStan checkMissingVarTagTypehint error
...
This check doesn't produce any errors so we don't need to exclude it
from our checks.
[MAILPOET-3236]
2021-08-09 12:58:56 +02:00
Jan Lysý
b0e53b38a1
Delete phpstan-baseline.neon and remove them from config
...
[MAILPOET-3235]
2021-01-18 14:39:42 +01:00
Rostislav Wolny
27af1f6f4e
Use WooCommerce stubs in static analysis instead custom file
...
[MAILPOET-2837]
2021-01-04 12:28:53 +01:00
Rostislav Wolny
32c3d08b36
Limit number of PHPStan processes to prevent crashes on CI
...
[MAILPOET-2837]
2021-01-04 12:28:53 +01:00
Rostislav Wolny
0bc0dd1808
Adjust PHP stan configs to use wordpress extension
...
[MAILPOET-2837]
2021-01-04 12:28:53 +01:00
Rostislav Wolny
3845f400b1
Add parameter for php version to static analysis command
...
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
Rostislav Wolny
0ee843723e
Enable unused ignoredErrors reporting for PHPStan
...
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
Rostislav Wolny
9e9063414f
Ignore some PHPStan errors in libs only for PHP7
...
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
Rostislav Wolny
688755a9bf
Handle WP source path config for different environments
...
[MAILPOET-3029]
2020-11-09 11:04:32 +01:00
Rostislav Wolny
4202faa40c
Configure phpstan scan files and directories for libs analysis
...
[MAILPOET-3029]
2020-11-09 11:04:32 +01:00
Rostislav Wolny
1f58e63306
Update phpstan config for lib
...
[MAILPOET-3146]
2020-10-08 15:59:05 +02:00
Rostislav Wolny
0437236cf1
Refactor subscriber finder to use new repository
...
[MAILPOET-3077]
2020-09-28 14:26:53 +02:00
Rostislav Wolny
ccf5210dbd
Add missing escaping to phpstan ignore pattern
...
[MAILPOET-2898]
2020-06-17 14:37:06 +02:00
Rostislav Wolny
6ee891a387
Add scheduled task subscriber entity and repository
...
[MAILPOET-2898]
2020-06-17 14:37:06 +02:00
Jan Jakeš
f8d1439b31
Skip templates in PHPStan for now due to extreme slowness
...
[MAILPOET-2945]
2020-05-27 13:40:41 +02:00
Jan Jakeš
f66a8d6af3
Check Doctrine entities by PHPStan
...
[MAILPOET-2945]
2020-05-27 13:40:41 +02:00
Jan Jakeš
fb2e1c707e
Update phpstan and phpstan-doctrine
...
[MAILPOET-2945]
2020-05-27 13:40:41 +02:00
Jan Jakeš
86a24ad674
Use PHPStan generics
...
[MAILPOET-2900]
2020-05-25 17:49:07 +02:00
Pavel Dohnal
260b8931f7
Fix phpstan config
...
[MAILPOET-2716]
2020-04-24 11:44:09 +02:00
Jan Jakeš
024ac52fb9
Add phpstan-doctrine extension
...
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
Jan Jakeš
d44fef7528
Exclude new PHPStan level 6 for now
...
[MAILPOET-2588]
2019-12-26 14:36:45 +01:00
Jan Jakeš
4a12051e81
Fix PHPStan paths
...
[MAILPOET-2588]
2019-12-26 14:36:45 +01:00
Pavel Dohnal
8fb58450ed
Use inferPrivatePropertyTypeFromConstructor
...
[MAILPOET-2568]
2019-12-10 13:24:17 +01:00
Pavel Dohnal
16db49cfa3
Mark constant as dynamic
...
[MAILPOET-2568]
2019-12-10 13:24:17 +01:00
Jan Jakeš
60889c53f4
Add Idiorm to MailPoetVendor namespace
...
[MAILPOET-2545]
2019-11-27 12:38:20 +00:00
Pavel Dohnal
1b3a74ace1
Run PHPStan on level 7
...
[MAILPOET-2535]
2019-11-20 10:24:39 +00:00
Pavel Dohnal
788d192ba9
Ignore this error because of bug in PHPStan
...
[MAILPOET-2535]
2019-11-20 10:24:39 +00:00
Jan Jakeš
f16d97fa5a
Ignore PHPStan error caused by wrong Doctrine annotation
...
[MAILPOET-2437]
2019-10-24 11:03:09 +01:00
Jan Jakeš
078223cd64
Fix path usage in PHPStan setup
...
[MAILPOET-2429]
2019-10-17 15:55:15 +01:00
Jan Jakeš
c822b09010
Install PHPStan PHAR to tools directory
...
[MAILPOET-2405]
2019-09-30 20:10:53 +01:00
Pavel Dohnal
c5b5d8f45d
Downgrade PHPStan level to 4
...
[MAILPOET-1915]
2019-03-21 14:02:59 -04:00
Pavel Dohnal
f3f769316a
Upgrade PHPStan level to 5
...
[MAILPOET-1915]
2019-03-21 14:02:59 -04:00
Pavel Dohnal
21766421d5
Upgrade PHPStan level to 4
...
I had to add some ignore errors until phpstan/phpstan#1482 is resolved
[MAILPOET-1915]
2019-03-21 14:02:59 -04:00
Pavel Dohnal
7d6f69ec1d
Upgrade PHPStan level to 3
...
[MAILPOET-1915]
2019-03-21 14:02:59 -04:00
Pavel Dohnal
bed80e67f1
Use phpstan level 2
...
[MAILPOET-1822]
2019-02-21 13:49:52 -05:00
Tautvidas Sipavičius
f719ae69c5
Fix the PHPStan report about passing in arguments into empty constructor
2019-01-24 15:20:29 +02:00
Tautvidas Sipavičius
db3ea80b87
Skip reporting ignored errors if they do not happen
2019-01-23 21:26:11 +02:00
Tautvidas Sipavičius
e13789b768
Fix "Static call to instance method" errors on Models
...
Paris uses magic methods to create model instance for static calls
2019-01-23 18:44:43 +02:00
Tautvidas Sipavičius
9f13f68e39
Fix "Access to undefined property" rule violations
2019-01-23 11:33:47 +02:00
Rostislav Wolny
c73741e727
Add ability to register premium service as a dependency of free plugin
...
[PREMIUM-99]
2018-12-12 08:53:28 +01:00
Jan Jakeš
48d202ee99
Add Robo task for PHPstan, avoid conflicts using other working dir
...
[MAILPOET-1657]
2018-12-10 16:15:39 +01:00
Jan Jakeš
bf7e6a601e
Move prefixed dependencies from lib/Dependencies to vendor-prefixed
...
[MAILPOET-1642]
2018-11-20 14:11:33 +01:00
Jan Jakeš
0a12d64cbf
Added PHPStan on level 0 for lib directory
2018-11-15 11:41:04 +01:00