Commit Graph

32 Commits

Author SHA1 Message Date
Rodrigo Primo
8513a4d986 Fix checkMissingTypehint PHPStan errors
This commit removes the checkMissingTypehints 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
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
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
Rostislav Wolny
120baeeb00 Add WooCommerceSubscriptions factory to tests
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
Jan Lysý
88c884b2c9 Delete phpstan-baseline files for tests 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
90eb894b72 Refactor acceptance tests splitting to respect coding style
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
Rostislav Wolny
c0c9b11c54 Add workaround for removed codeception/robo-paracept
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
Rostislav Wolny
a62ad4f70a Update robo and codeception and remove outdated deps
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
Pavel Dohnal
06dca19738 Add magic getters for backward compatibility
[MAILPOET-3333]
2020-12-03 14:11:53 +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
24fa5bd6ca Adjust integration tests analysis configuration
[MAILPOET-3029]
2020-11-09 11:04:32 +01:00
Rostislav Wolny
f16601e239 Update phpstan/phpunit extension
[MAILPOET-3203]
2020-10-20 13:18:43 +02:00
Rostislav Wolny
ba26e91f82 Update phpstan config for tests and fix errors in tests
[MAILPOET-3146]
2020-10-08 15:59:05 +02:00
Jan Jakeš
024ac52fb9 Add phpstan-doctrine extension
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
Jan Jakeš
053acbce23 Remove no longer needed PHPStan extension
[MAILPOET-2582]
2020-01-28 20:18:39 +00:00
wxa
ee4246eaf0 Ignore errors after fetching models with ORM and a few misc errors [MAILPOET-2488] 2019-12-30 14:51:22 +01:00
wxa
091e17ce0c Add PHPStan to integration tests, fix a class name conflict [MAILPOET-2488] 2019-12-30 14:51:22 +01:00
Jan Jakeš
27a842b037 Exclude error on expect() function
[MAILPOET-2588]
2019-12-26 14:36:45 +01: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
1b3a74ace1 Run PHPStan on level 7
[MAILPOET-2535]
2019-11-20 10:24:39 +00:00
Jan Jakeš
e3176a3edf Check all test support files with PHPStan
[MAILPOET-2429]
2019-10-17 15:55:15 +01:00
Jan Jakeš
2e836c174e Check acceptance tests with PHPStan, fix discovered problems
[MAILPOET-2429]
2019-10-17 15:55:15 +01:00
Jan Jakeš
ffc11af689 Check data factories with PHPStan, fix discovered problems
[MAILPOET-2429]
2019-10-17 15:55:15 +01:00
Jan Jakeš
5c2cf6e3c7 Implement Codeception extension for PHPStan
[MAILPOET-2429]
2019-10-17 15:55:15 +01:00
Jan Jakeš
66c48f4690 Implement PHPStan extension for PHPUnit 5 compatibility
[MAILPOET-2429]
2019-10-17 15:55:15 +01:00
Jan Jakeš
175b66c273 Add PHPUnit extension for PHPStan
[MAILPOET-2429]
2019-10-17 15:55:15 +01:00
Jan Jakeš
39932e9846 Run PHPStan for unit tests
[MAILPOET-2429]
2019-10-17 15:55:15 +01:00