Commit Graph

130 Commits

Author SHA1 Message Date
120baeeb00 Add WooCommerceSubscriptions factory to tests
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
8c4805cd0a Update pattern to ignore PHPStan error
Since we updated to PHPStan 0.12.83 we started getting the error bellow.
It seems this happened because the message of an error that we were
already ignoring was changed. This commit simply updates the pattern we
use to ignore the error to reflect the change in the new PHPStan
version.

```
 ------ ---------------------------------------------------------------------
  Line   lib/Features/FeatureFlagsController.php
 ------ ---------------------------------------------------------------------
         Ignored error pattern #^Cannot access offset \(int\|string\) on
         array\|false# in path
         /home/circleci/mailpoet/lib/Features/FeatureFlagsController.php was
         not matched in reported errors.
  44     Cannot access offset (int|string) on array<string,
         MailPoet\Entities\FeatureFlagEntity>|false.
 ------ ---------------------------------------------------------------------
```

[MAILPOET-3491]
2021-04-12 08:55:14 +02:00
0f6d7a5627 Update PHPStan to 0.12.83
[MAILPOET-3491]
2021-04-12 08:55:14 +02:00
88c884b2c9 Delete phpstan-baseline files for tests and remove them from config
[MAILPOET-3235]
2021-01-18 14:39:42 +01:00
b0e53b38a1 Delete phpstan-baseline.neon and remove them from config
[MAILPOET-3235]
2021-01-18 14:39:42 +01:00
27af1f6f4e Use WooCommerce stubs in static analysis instead custom file
[MAILPOET-2837]
2021-01-04 12:28:53 +01:00
32c3d08b36 Limit number of PHPStan processes to prevent crashes on CI
[MAILPOET-2837]
2021-01-04 12:28:53 +01:00
35a25e119f Remove unnecessary type checks
These were added during initial testing of php8 compatibility using PHPStan and were false positive due PHPStan issues.
[MAILPOET-2837]
2021-01-04 12:28:53 +01:00
8b58167ed9 Remove phpstan configuration for loading WordPress
[MAILPOET-2837]
2021-01-04 12:28:53 +01:00
0bc0dd1808 Adjust PHP stan configs to use wordpress extension
[MAILPOET-2837]
2021-01-04 12:28:53 +01:00
332dd6ea58 Install phpstan-wordpress extention
[MAILPOET-2837]
2021-01-04 12:28:53 +01:00
f0133c8f74 Update phpstan and extensions
[MAILPOET-2837]
2021-01-04 12:28:53 +01:00
15d010c448 Fix static analysis issues in FormTest
[MAILPOET-3297]
2021-01-04 11:32:28 +01:00
37cef4fb34 Remove usage of Idiorm from Segments test
[MAILPOET-3167]
2020-12-07 14:48:58 +01:00
3845f400b1 Add parameter for php version to static analysis command
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
0ee843723e Enable unused ignoredErrors reporting for PHPStan
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
90eb894b72 Refactor acceptance tests splitting to respect coding style
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
9473579766 Fix type issues in tests
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
9e9063414f Ignore some PHPStan errors in libs only for PHP7
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
ec19b565f5 Update PHP Stan
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
c0c9b11c54 Add workaround for removed codeception/robo-paracept
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
a62ad4f70a Update robo and codeception and remove outdated deps
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
12cc818f8b Fix required after optional parameter in doctrine config factory
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
06dca19738 Add magic getters for backward compatibility
[MAILPOET-3333]
2020-12-03 14:11:53 +01:00
688755a9bf Handle WP source path config for different environments
[MAILPOET-3029]
2020-11-09 11:04:32 +01:00
24fa5bd6ca Adjust integration tests analysis configuration
[MAILPOET-3029]
2020-11-09 11:04:32 +01:00
8f73eb785b Load stuff that is needed in runtime during PHPStan analysis
[MAILPOET-3029]
2020-11-09 11:04:32 +01:00
36b5a279b9 Add constants needed during analysis
[MAILPOET-3029]
2020-11-09 11:04:32 +01:00
90d7e1804e Clean PHPStan bootstrap file - get rid of WP loading
[MAILPOET-3029]
2020-11-09 11:04:32 +01:00
4202faa40c Configure phpstan scan files and directories for libs analysis
[MAILPOET-3029]
2020-11-09 11:04:32 +01:00
ac1044eebb Remove mose of uses Idiorm from NewslettersTest
[MAILPOET-2946]
2020-10-27 15:00:14 +01:00
a15a74d94f Use doctrine instead of Idiom in test for PostNotification
[MAILPOET-2946]
2020-10-27 15:00:14 +01:00
f8bd946dc0 Check sent emails for products when schedulig an email
[MAILPOET-2335] [MAILPOET-2334]
2020-10-22 11:54:41 +02:00
e43819920d Update PHPStan
[MAILPOET-3203]
2020-10-20 13:18:43 +02:00
f16601e239 Update phpstan/phpunit extension
[MAILPOET-3203]
2020-10-20 13:18:43 +02:00
ba26e91f82 Update phpstan config for tests and fix errors in tests
[MAILPOET-3146]
2020-10-08 15:59:05 +02:00
1f58e63306 Update phpstan config for lib
[MAILPOET-3146]
2020-10-08 15:59:05 +02:00
8f7463b20d Update PHPStan Doctrine extension and PHPStan
[MAILPOET-3146]
2020-10-08 15:59:05 +02:00
0437236cf1 Refactor subscriber finder to use new repository
[MAILPOET-3077]
2020-09-28 14:26:53 +02:00
7c979c9b56 Move manage subscription page filter to proper class
[MAILPOET-1635]
2020-08-03 10:23:17 +02:00
wxa
a181afe646 Load PHPMailer conditionally to avoid deprecation notices in WP 5.5 [MAILPOET-3040] 2020-07-16 10:11:09 +02:00
85824ec268 Adjust changes to fix failed tests 2020-07-09 09:56:10 +02:00
c4628d4f78 Update usages of form factory
[MAILPOET-2985]
2020-07-06 15:18:23 +02:00
ccf5210dbd Add missing escaping to phpstan ignore pattern
[MAILPOET-2898]
2020-06-17 14:37:06 +02:00
0d4abd9bce Mark Newsletter trash,restore,delete as deprecated and use bulk methods instead
[MAILPOET-2898][MAILPOET-2758]
2020-06-17 14:37:06 +02:00
a8d11bf045 Replace Newsletter delete,trash,replace by new bulkMethods
[MAILPOET-2898][MAILPOET-2758]
2020-06-17 14:37:06 +02:00
6ee891a387 Add scheduled task subscriber entity and repository
[MAILPOET-2898]
2020-06-17 14:37:06 +02:00
fb238cd531 Fix errors discovered by doctrine-phpstan
[MAILPOET-2945]
2020-05-27 13:40:41 +02:00
f8d1439b31 Skip templates in PHPStan for now due to extreme slowness
[MAILPOET-2945]
2020-05-27 13:40:41 +02:00
f66a8d6af3 Check Doctrine entities by PHPStan
[MAILPOET-2945]
2020-05-27 13:40:41 +02:00