Commit Graph

189 Commits

Author SHA1 Message Date
dc55fb64cd Set even 30 days old newsletters as scheduled when reactivating an email
[MAILPOET-2709]
2020-04-01 16:49:27 +02:00
a0ee6dadba Ignore PHPStan error about EntityManager::getReference() type for now
PHPStan's Doctrine extension doesn't recognize our prefixed version of Doctrine.
We'll need to address this separately.

[MAILPOET-2647]
2020-03-23 00:33:40 +01:00
72af35e2af Rewrite newsletter template model test to Doctrine repository test
[MAILPOET-2645]
2020-03-23 00:33:40 +01:00
cf88ada402 Rewrite old tests to NewslettersListingRepository tests
[MAILPOET-2645]
2020-03-11 17:06:02 +00:00
ecc1d68b5b Check if bounce sync is scheduled within 42 hours for all emails when sending
[MAILPOET-2705]
2020-02-20 17:34:07 +00:00
024ac52fb9 Add phpstan-doctrine extension
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
f980cb00d8 Update PHPStan
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
f56cd6934f Add CodeSniffer rule for opening brace of class/interface/trait
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
707eb399a8 Add CodeSniffer rule for unused "use" statements
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
ec6ecdb79e Add CodeSniffer rules for parameter, property, and return typehint spacing
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
53f2614c02 Add CodeSniffer rule for declaring class properties
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
153c72cd77 Autofix long scalar typehints to short ones
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
56286bfd11 Add CodeSniffer rule enforcing short scalar typehint variants
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
b39dac75d6 Autofix number of newlines between methods
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
73963bd37a Add CodeSniffer rule for empty lines between methods
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
e640395589 Move indentation rules to a custom section
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
4e538cbcf7 Move other class/interface related rules to their section
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
b160df9ea7 Add CodeSniffer rule to check for duplicate class name
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
30f461a95c Add CodeSniffer rule to enforce lowercase 'class' keyword
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
3a9f806641 Add rule to disable inline HTML in PHP (exclude Widget.php)
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
36e25621e6 Move other file-related sniffs to the same section
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
d9db919651 Add CodeSniffer rule to enforce newline at end of file
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
f6a993f731 Update Code Sniffer packages
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
4be306230b Fix findOne() method annotation
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
8a17733698 Add WC_Session stub for PHPStan
[MAILPOET-2570]
2020-02-03 16:29:35 +01:00
053acbce23 Remove no longer needed PHPStan extension
[MAILPOET-2582]
2020-01-28 20:18:39 +00:00
835d8bc0af Fix PHPUnit 6 & Codeception\Verify incompatibilities
[MAILPOET-2582]
2020-01-28 20:18:39 +00:00
wxa
0fa072b392 Clean up ignored PHPStan errors [MAILPOET-2577] 2020-01-23 12:46:52 +00:00
wxa
e7e116c83d Refactor create_function() to anonymous functions [MAILPOET-2523] 2020-01-16 16:12:52 +01:00
wxa
067950feda Rename deprecated constructors [MAILPOET-2523] 2020-01-16 16:12:52 +01:00
4e75bcd296 Implement API for Premium plugin installation and activation
[MAILPOET-2431]
2020-01-16 10:29:55 +00:00
edb07f03ac Convert variable names to camel case in PHPStan baseline files
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
3bbc8ea2af Convert variable names to camel case in strings
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
8c848cfa28 Convert property names to camel case
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
54549ff037 Convert variable names to camel case
[MAILPOET-1796]
2020-01-14 15:22:42 +01: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
17b578a09f Fix undefined classes and functions [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
43df66d162 Add public keyword to methods
[MAILPOET-2413]
2019-12-26 18:09:45 +03:00
ec409042d5 Add methods visibility rule
[MAILPOET-2413]
2019-12-26 18:09:45 +03:00
f6c301f38f Add remaining found errors to PHPStan baseline
[MAILPOET-2588]
2019-12-26 14:36:45 +01:00
27a842b037 Exclude error on expect() function
[MAILPOET-2588]
2019-12-26 14:36:45 +01:00
d44fef7528 Exclude new PHPStan level 6 for now
[MAILPOET-2588]
2019-12-26 14:36:45 +01:00
ff7c63f0b3 Upgrade PHPUnit5CompatExtension
[MAILPOET-2588]
2019-12-26 14:36:45 +01:00
4a12051e81 Fix PHPStan paths
[MAILPOET-2588]
2019-12-26 14:36:45 +01:00
f142bd6695 Upgrade PHPStan to 0.12
[MAILPOET-2588]
2019-12-26 14:36:45 +01:00
wxa
f9ec25213d Always fetch styles from WooCommerce [MAILPOET-2569] 2019-12-23 21:55:40 +03:00
d3ce76f88d Use instance of checks for detecting WCProduct
[MAILPOET-2586]
2019-12-19 18:08:26 +00:00
07fc94f046 Fix Carbon-related problems reported by PHPStan
[MAILPOET-2560]
2019-12-15 21:55:48 +00:00
8fb58450ed Use inferPrivatePropertyTypeFromConstructor
[MAILPOET-2568]
2019-12-10 13:24:17 +01:00