Commit Graph

283 Commits

Author SHA1 Message Date
8d716a0ec8 Add replacing invalid CSS from form-editor to postinstall script
[MAILPOET-3634]
2021-05-26 15:25:53 +02:00
c55d4f06be Check for more filename variants when downloading release zip
[MAILPOET-3482]
2021-04-26 13:47:41 +02:00
e02980e0f9 Add meta info with version along side the downloaded plugin
[MAILPOET-3482]
2021-04-26 13:47:41 +02:00
44f1269916 Change plugins download directory
[MAILPOET-3482]
2021-04-26 13:47:41 +02:00
ff806859cb Add robo command for downloading WooCommerce
[MAILPOET-3482]
2021-04-26 13:47:41 +02:00
bf7c4e6b58 Add PHP_CodeSniffer Standards Composer Installer Plugin 2021-04-23 11:13:38 +02:00
726cbf4679 Configure Woo Subscriptions versions for Circle CI
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
120baeeb00 Add WooCommerceSubscriptions factory to tests
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
6c2d428355 Add simple Github client for downloading release assets
[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
a9745eeec0 Add sort versions from Jira by release date
[MAILPOET-3510]
2021-03-23 15:59:00 +01:00
wxa
be320ad995 Update parsleyjs [MAILPOET-3386]
Note: deferred.pipe() fix is not implemented yet, see https://github.com/guillaumepotier/Parsley.js/pull/1347
2021-03-03 14:59:54 +01:00
wxa
7423a618e2 Update spectrum-colorpicker [MAILPOET-3386]
The deprecated jQuery methods are fixed in GitHub, but not in npm,
so I've decided to apply a patch from the repo until it gets released.
2021-03-03 14:59:54 +01:00
70138089d7 PHPCS: set the supported PHP versions in the ruleset file
This commit moves the definition of the supported PHP versions from
RoboFile.php file to the PHPCS configuration file, ruleset.xml. This
should make it easier to configure PHPCS in other places like the IDE.

I also removed the constraint of the highest supported PHP version
(previously, it was hard-coded to 8.0) as I believe we support new PHP
versions as soon as they are released. With this change, we don't need to
remember to update testVersion tag whenever there is a new PHP version.

[MAILPOET-3439]
2021-02-22 15:31:56 +03:00
1999c02e3d Check if file is renamed in fix-phpunit.php
[MAILPOET-3395]
2021-02-04 17:58:42 +01: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
bcd90775e7 Fix full path disclosure script for files with return on firs line
[MAILPOET-3364]
2021-01-12 13:59:03 +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
b4ee9a756a Update codesniffer to PHP8 compatible version
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
6459828eb2 Fix warnings in translations:build command
There is no need to pass the variable by reference.
[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
71c515cdcf Add patching for interface name collision with match expression
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
747d5fffee Add patching for phpunit deprecated ReflectionParameter::getClass()
[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
bcd606ac1b Change php-console-highlighter source repository
[MAILPOET-3192]
2020-11-19 16:22:50 +01:00
02220bfaa4 Change php-parallel-lint source repository
[MAILPOET-3192]
2020-11-19 16:22:50 +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