Commit Graph

6 Commits

Author SHA1 Message Date
154a812776 Make SegmentsRepository::getWPUsersSegment() behave like Segment::getWPSegment()
This commit changes SegmentsRepository::getWPUsersSegment() so that it
behaves like Models\Segment::getWPSegment() and creates a WP segment
when none is found. This is needed to replace the latter with the former
in a subsequent commit.

[MAILPOET-4306]
2022-09-26 14:18:01 +02:00
b05e6d414c Remove WP\Functions::__ and other translate functions
Under the new sniffer rules, those functions produce errors and, when those methods
are used, the sniffer can not properly be applied.

[MAILPOET-4524]
2022-08-09 13:23:16 +02:00
75eb7f6900 Move some types from comments to signature
[MAILPOET-3720]
2022-05-23 12:04:36 +02:00
3f8ee47659 Remove PHPStan level 6 errors from SegmentsRepository.php
Remove the following errors:
(Method|Property|Function) has no (return )?type specified.
(Method|Function) has parameter with no type (specified).
I have modified bulkDelete to be similar to bulkDelete on SubscribersRepository.php. This function is used in MailPoet\Test\API\JSON\v1\Segments.

[MAILPOET-3720]
2022-05-23 12:04:36 +02:00
95857d74b9 Check for uniqueness when updating name
[MAILPOET-4199]
2022-04-18 20:03:42 +02:00
9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00