diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 97c8bcf1e..fec99fa0f 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -520,6 +520,21 @@ parameters: count: 1 path: compat/src-deprecated/functions.php + - + message: "#^$#" + count: 2 + path: compat/src-deprecated/helpers.php + + - + message: "#^Class \"BracketSpace\\\\Notification\\\\Repository\\\\Adapter\\\\JSON\" not found$#" + count: 1 + path: compat/src-deprecated/namespaces.php + + - + message: "#^Class \"BracketSpace\\\\Notification\\\\Repository\\\\Adapter\\\\WordPress\" not found$#" + count: 1 + path: compat/src-deprecated/namespaces.php + - message: "#^Call to static method create\\(\\) on an unknown class StubsGenerator\\\\Finder\\.$#" count: 1 @@ -1150,960 +1165,960 @@ parameters: count: 1 path: src/Database/Queries/UserQueries.php + - + message: "#^Invalid type object to throw\\.$#" + count: 1 + path: src/ErrorHandler.php + + - + message: "#^Cannot call method getSetting\\(\\) on mixed\\.$#" + count: 14 + path: src/Integration/WordPressEmails.php + + - + message: "#^Method BracketSpace\\\\Notification\\\\Integration\\\\WordPressEmails\\:\\:getSettingForUserRole\\(\\) is unused\\.$#" + count: 1 + path: src/Integration/WordPressEmails.php + + - + message: "#^Cannot call method getSetting\\(\\) on mixed\\.$#" + count: 1 + path: src/Integration/WordPressIntegration.php + - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" count: 1 - path: src/Defaults/Carrier/Email.php + path: src/Repository/Carrier/Email.php - message: "#^Cannot access offset 'key' on mixed\\.$#" count: 1 - path: src/Defaults/Carrier/Email.php + path: src/Repository/Carrier/Email.php - message: "#^Cannot access offset 'value' on mixed\\.$#" count: 1 - path: src/Defaults/Carrier/Email.php + path: src/Repository/Carrier/Email.php - message: "#^Cannot call method getSetting\\(\\) on mixed\\.$#" count: 8 - path: src/Defaults/Carrier/Email.php + path: src/Repository/Carrier/Email.php - message: "#^Cannot access offset 'hide' on mixed\\.$#" count: 1 - path: src/Defaults/Carrier/Webhook.php + path: src/Repository/Carrier/Webhook.php - message: "#^Cannot access offset 'key' on mixed\\.$#" count: 1 - path: src/Defaults/Carrier/Webhook.php + path: src/Repository/Carrier/Webhook.php - message: "#^Cannot access offset 'value' on mixed\\.$#" count: 1 - path: src/Defaults/Carrier/Webhook.php + path: src/Repository/Carrier/Webhook.php - message: "#^Cannot call method getSetting\\(\\) on mixed\\.$#" count: 2 - path: src/Defaults/Carrier/Webhook.php + path: src/Repository/Carrier/Webhook.php - - message: "#^Parameter \\#1 \\$args of method BracketSpace\\\\Notification\\\\Defaults\\\\Carrier\\\\Webhook\\:\\:parseArgs\\(\\) expects array, mixed given\\.$#" + message: "#^Parameter \\#1 \\$args of method BracketSpace\\\\Notification\\\\Repository\\\\Carrier\\\\Webhook\\:\\:parseArgs\\(\\) expects array, mixed given\\.$#" count: 1 - path: src/Defaults/Carrier/Webhook.php + path: src/Repository/Carrier/Webhook.php - message: "#^Cannot access offset 'hide' on mixed\\.$#" count: 1 - path: src/Defaults/Carrier/WebhookJson.php + path: src/Repository/Carrier/WebhookJson.php - message: "#^Cannot access offset 'key' on mixed\\.$#" count: 1 - path: src/Defaults/Carrier/WebhookJson.php + path: src/Repository/Carrier/WebhookJson.php - message: "#^Cannot access offset 'value' on mixed\\.$#" count: 1 - path: src/Defaults/Carrier/WebhookJson.php + path: src/Repository/Carrier/WebhookJson.php - message: "#^Cannot call method getSetting\\(\\) on mixed\\.$#" count: 2 - path: src/Defaults/Carrier/WebhookJson.php + path: src/Repository/Carrier/WebhookJson.php - - message: "#^Parameter \\#1 \\$args of method BracketSpace\\\\Notification\\\\Defaults\\\\Carrier\\\\WebhookJson\\:\\:parseArgs\\(\\) expects array, mixed given\\.$#" + message: "#^Parameter \\#1 \\$args of method BracketSpace\\\\Notification\\\\Repository\\\\Carrier\\\\WebhookJson\\:\\:parseArgs\\(\\) expects array, mixed given\\.$#" count: 1 - path: src/Defaults/Carrier/WebhookJson.php + path: src/Repository/Carrier/WebhookJson.php + + - + message: "#^Cannot call method getSetting\\(\\) on mixed\\.$#" + count: 2 + path: src/Repository/CarrierRepository.php + + - + message: "#^Parameter \\#1 \\$carrier of static method BracketSpace\\\\Notification\\\\Register\\:\\:carrier\\(\\) expects BracketSpace\\\\Notification\\\\Interfaces\\\\Sendable, mixed given\\.$#" + count: 3 + path: src/Repository/CarrierRepository.php + + - + message: "#^Parameter \\#1 \\$data of class BracketSpace\\\\Notification\\\\Core\\\\Notification constructor expects array\\{hash\\?\\: string, title\\?\\: string, trigger\\?\\: BracketSpace\\\\Notification\\\\Interfaces\\\\Triggerable, carriers\\?\\: array\\, enabled\\?\\: bool, extras\\?\\: array\\, version\\?\\: int\\}, array\\{hash\\?\\: string, title\\?\\: string, trigger\\?\\: BracketSpace\\\\Notification\\\\Interfaces\\\\Triggerable\\|string\\|null, carriers\\?\\: array\\\\|BracketSpace\\\\Notification\\\\Interfaces\\\\Sendable\\>, enabled\\?\\: bool, extras\\?\\: array\\, version\\?\\: int\\} given\\.$#" + count: 1 + path: src/Repository/Converter/ArrayConverter.php - message: "#^Parameter \\#1 \\$text of function esc_attr expects string, string\\|false given\\.$#" count: 1 - path: src/Defaults/Field/CodeEditorField.php + path: src/Repository/Field/CodeEditorField.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\Field\\\\CodeEditorField\\:\\:\\$settings \\(string\\) does not accept mixed\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\Field\\\\CodeEditorField\\:\\:\\$settings \\(string\\) does not accept mixed\\.$#" count: 1 - path: src/Defaults/Field/CodeEditorField.php + path: src/Repository/Field/CodeEditorField.php - message: "#^Parameter \\#1 \\$color of function sanitize_hex_color expects string, mixed given\\.$#" count: 1 - path: src/Defaults/Field/ColorPickerField.php + path: src/Repository/Field/ColorPickerField.php - message: "#^Parameter \\#1 \\$haystack of function strpos expects string, mixed given\\.$#" count: 1 - path: src/Defaults/Field/ColorPickerField.php + path: src/Repository/Field/ColorPickerField.php - message: "#^Parameter \\#1 \\$text of function esc_attr expects string, mixed given\\.$#" count: 1 - path: src/Defaults/Field/ColorPickerField.php + path: src/Repository/Field/ColorPickerField.php - message: "#^Parameter \\#3 \\$subject of function str_replace expects array\\|string, mixed given\\.$#" count: 1 - path: src/Defaults/Field/ColorPickerField.php + path: src/Repository/Field/ColorPickerField.php - - message: "#^Method BracketSpace\\\\Notification\\\\Defaults\\\\Field\\\\EditorField\\:\\:field\\(\\) should return string but returns string\\|false\\.$#" + message: "#^Method BracketSpace\\\\Notification\\\\Repository\\\\Field\\\\EditorField\\:\\:field\\(\\) should return string but returns string\\|false\\.$#" count: 1 - path: src/Defaults/Field/EditorField.php + path: src/Repository/Field/EditorField.php - message: "#^Parameter \\#1 \\$content of function wp_editor expects string, mixed given\\.$#" count: 1 - path: src/Defaults/Field/EditorField.php + path: src/Repository/Field/EditorField.php - message: "#^Parameter \\#3 \\$subject of function str_replace expects array\\|string, mixed given\\.$#" count: 1 - path: src/Defaults/Field/EditorField.php + path: src/Repository/Field/EditorField.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\Field\\\\EditorField\\:\\:\\$settings \\(string\\) does not accept mixed\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\Field\\\\EditorField\\:\\:\\$settings \\(string\\) does not accept mixed\\.$#" count: 1 - path: src/Defaults/Field/EditorField.php + path: src/Repository/Field/EditorField.php - message: "#^Parameter \\#1 \\$post_id of function wp_get_attachment_thumb_url expects int, mixed given\\.$#" count: 1 - path: src/Defaults/Field/ImageField.php + path: src/Repository/Field/ImageField.php - message: "#^Parameter \\#1 \\$text of function esc_attr expects string, mixed given\\.$#" count: 1 - path: src/Defaults/Field/ImageField.php + path: src/Repository/Field/ImageField.php - message: "#^Cannot cast mixed to string\\.$#" count: 1 - path: src/Defaults/Field/InputField.php + path: src/Repository/Field/InputField.php - message: "#^Parameter \\#1 \\$text of function esc_attr expects string, mixed given\\.$#" count: 1 - path: src/Defaults/Field/InputField.php + path: src/Repository/Field/InputField.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\Field\\\\InputField\\:\\:\\$type \\(string\\) does not accept mixed\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\Field\\\\InputField\\:\\:\\$type \\(string\\) does not accept mixed\\.$#" count: 1 - path: src/Defaults/Field/InputField.php + path: src/Repository/Field/InputField.php - message: "#^Parameter \\#1 \\$text of function esc_attr expects string, mixed given\\.$#" count: 1 - path: src/Defaults/Field/MessageField.php + path: src/Repository/Field/MessageField.php - message: "#^Parameter \\#3 \\$subject of function preg_replace expects array\\|string, mixed given\\.$#" count: 1 - path: src/Defaults/Field/MessageField.php + path: src/Repository/Field/MessageField.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\Field\\\\MessageField\\:\\:\\$message \\(string\\) does not accept mixed\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\Field\\\\MessageField\\:\\:\\$message \\(string\\) does not accept mixed\\.$#" count: 1 - path: src/Defaults/Field/MessageField.php + path: src/Repository/Field/MessageField.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\Field\\\\NonceField\\:\\:\\$nonceKey \\(string\\) does not accept mixed\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\Field\\\\NonceField\\:\\:\\$nonceKey \\(string\\) does not accept mixed\\.$#" count: 1 - path: src/Defaults/Field/NonceField.php + path: src/Repository/Field/NonceField.php - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" count: 1 - path: src/Defaults/Field/RepeaterField.php + path: src/Repository/Field/RepeaterField.php - message: "#^Cannot access offset string on mixed\\.$#" count: 1 - path: src/Defaults/Field/RepeaterField.php + path: src/Repository/Field/RepeaterField.php - message: "#^Parameter \\#1 \\$text of function esc_attr expects string, mixed given\\.$#" count: 1 - path: src/Defaults/Field/RepeaterField.php + path: src/Repository/Field/RepeaterField.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\Field\\\\RepeaterField\\:\\:\\$fields \\(array\\\\) does not accept mixed\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\Field\\\\RepeaterField\\:\\:\\$fields \\(array\\\\) does not accept mixed\\.$#" count: 1 - path: src/Defaults/Field/RepeaterField.php + path: src/Repository/Field/RepeaterField.php - message: "#^Parameter \\#1 \\$text of function esc_attr expects string, mixed given\\.$#" count: 1 - path: src/Defaults/Field/SectionRepeater.php + path: src/Repository/Field/SectionRepeater.php - message: "#^Parameter \\#1 \\$text of function esc_html expects string, mixed given\\.$#" count: 1 - path: src/Defaults/Field/SectionRepeater.php + path: src/Repository/Field/SectionRepeater.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\Field\\\\SectionRepeater\\:\\:\\$sections \\(array\\) does not accept mixed\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\Field\\\\SectionRepeater\\:\\:\\$sections \\(array\\) does not accept mixed\\.$#" count: 1 - path: src/Defaults/Field/SectionRepeater.php + path: src/Repository/Field/SectionRepeater.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\Field\\\\SectionsField\\:\\:\\$sections \\(array\\) does not accept mixed\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\Field\\\\SectionsField\\:\\:\\$sections \\(array\\) does not accept mixed\\.$#" count: 1 - path: src/Defaults/Field/SectionsField.php + path: src/Repository/Field/SectionsField.php - message: "#^Parameter \\#1 \\$str of function sanitize_text_field expects string, mixed given\\.$#" count: 1 - path: src/Defaults/Field/SelectField.php + path: src/Repository/Field/SelectField.php - message: "#^Parameter \\#1 \\$text of function esc_html expects string, mixed given\\.$#" count: 1 - path: src/Defaults/Field/SelectField.php + path: src/Repository/Field/SelectField.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\Field\\\\SelectField\\:\\:\\$options \\(array\\) does not accept mixed\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\Field\\\\SelectField\\:\\:\\$options \\(array\\) does not accept mixed\\.$#" count: 1 - path: src/Defaults/Field/SelectField.php + path: src/Repository/Field/SelectField.php - message: "#^Parameter \\#1 \\$str of function sanitize_textarea_field expects string, mixed given\\.$#" count: 1 - path: src/Defaults/Field/TextareaField.php + path: src/Repository/Field/TextareaField.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\Field\\\\TextareaField\\:\\:\\$placeholder \\(string\\) does not accept mixed\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\Field\\\\TextareaField\\:\\:\\$placeholder \\(string\\) does not accept mixed\\.$#" count: 1 - path: src/Defaults/Field/TextareaField.php + path: src/Repository/Field/TextareaField.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\MergeTag\\\\Comment\\\\CommentActionApprove\\:\\:\\$commentType \\(string\\) does not accept mixed\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\MergeTag\\\\Comment\\\\CommentActionApprove\\:\\:\\$commentType \\(string\\) does not accept mixed\\.$#" count: 1 - path: src/Defaults/MergeTag/Comment/CommentActionApprove.php + path: src/Repository/MergeTag/Comment/CommentActionApprove.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\MergeTag\\\\Comment\\\\CommentActionDelete\\:\\:\\$commentType \\(string\\) does not accept mixed\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\MergeTag\\\\Comment\\\\CommentActionDelete\\:\\:\\$commentType \\(string\\) does not accept mixed\\.$#" count: 1 - path: src/Defaults/MergeTag/Comment/CommentActionDelete.php + path: src/Repository/MergeTag/Comment/CommentActionDelete.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\MergeTag\\\\Comment\\\\CommentActionSpam\\:\\:\\$commentType \\(string\\) does not accept mixed\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\MergeTag\\\\Comment\\\\CommentActionSpam\\:\\:\\$commentType \\(string\\) does not accept mixed\\.$#" count: 1 - path: src/Defaults/MergeTag/Comment/CommentActionSpam.php + path: src/Repository/MergeTag/Comment/CommentActionSpam.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\MergeTag\\\\Comment\\\\CommentActionTrash\\:\\:\\$commentType \\(string\\) does not accept mixed\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\MergeTag\\\\Comment\\\\CommentActionTrash\\:\\:\\$commentType \\(string\\) does not accept mixed\\.$#" count: 1 - path: src/Defaults/MergeTag/Comment/CommentActionTrash.php + path: src/Repository/MergeTag/Comment/CommentActionTrash.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\MergeTag\\\\Comment\\\\CommentAuthorIP\\:\\:\\$commentType \\(string\\) does not accept mixed\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\MergeTag\\\\Comment\\\\CommentAuthorIP\\:\\:\\$commentType \\(string\\) does not accept mixed\\.$#" count: 1 - path: src/Defaults/MergeTag/Comment/CommentAuthorIP.php + path: src/Repository/MergeTag/Comment/CommentAuthorIP.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\MergeTag\\\\Comment\\\\CommentAuthorUrl\\:\\:\\$commentType \\(string\\) does not accept mixed\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\MergeTag\\\\Comment\\\\CommentAuthorUrl\\:\\:\\$commentType \\(string\\) does not accept mixed\\.$#" count: 1 - path: src/Defaults/MergeTag/Comment/CommentAuthorUrl.php + path: src/Repository/MergeTag/Comment/CommentAuthorUrl.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\MergeTag\\\\Comment\\\\CommentAuthorUserAgent\\:\\:\\$commentType \\(string\\) does not accept mixed\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\MergeTag\\\\Comment\\\\CommentAuthorUserAgent\\:\\:\\$commentType \\(string\\) does not accept mixed\\.$#" count: 1 - path: src/Defaults/MergeTag/Comment/CommentAuthorUserAgent.php + path: src/Repository/MergeTag/Comment/CommentAuthorUserAgent.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\MergeTag\\\\Comment\\\\CommentContent\\:\\:\\$commentType \\(string\\) does not accept mixed\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\MergeTag\\\\Comment\\\\CommentContent\\:\\:\\$commentType \\(string\\) does not accept mixed\\.$#" count: 1 - path: src/Defaults/MergeTag/Comment/CommentContent.php + path: src/Repository/MergeTag/Comment/CommentContent.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\MergeTag\\\\Comment\\\\CommentContentHtml\\:\\:\\$commentType \\(string\\) does not accept mixed\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\MergeTag\\\\Comment\\\\CommentContentHtml\\:\\:\\$commentType \\(string\\) does not accept mixed\\.$#" count: 1 - path: src/Defaults/MergeTag/Comment/CommentContentHtml.php + path: src/Repository/MergeTag/Comment/CommentContentHtml.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\MergeTag\\\\Comment\\\\CommentID\\:\\:\\$commentType \\(string\\) does not accept mixed\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\MergeTag\\\\Comment\\\\CommentID\\:\\:\\$commentType \\(string\\) does not accept mixed\\.$#" count: 1 - path: src/Defaults/MergeTag/Comment/CommentID.php + path: src/Repository/MergeTag/Comment/CommentID.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\MergeTag\\\\Comment\\\\CommentIsReply\\:\\:\\$commentType \\(string\\) does not accept mixed\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\MergeTag\\\\Comment\\\\CommentIsReply\\:\\:\\$commentType \\(string\\) does not accept mixed\\.$#" count: 1 - path: src/Defaults/MergeTag/Comment/CommentIsReply.php + path: src/Repository/MergeTag/Comment/CommentIsReply.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\MergeTag\\\\Comment\\\\CommentStatus\\:\\:\\$commentType \\(string\\) does not accept mixed\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\MergeTag\\\\Comment\\\\CommentStatus\\:\\:\\$commentType \\(string\\) does not accept mixed\\.$#" count: 1 - path: src/Defaults/MergeTag/Comment/CommentStatus.php + path: src/Repository/MergeTag/Comment/CommentStatus.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\MergeTag\\\\Comment\\\\CommentType\\:\\:\\$commentType \\(string\\) does not accept mixed\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\MergeTag\\\\Comment\\\\CommentType\\:\\:\\$commentType \\(string\\) does not accept mixed\\.$#" count: 1 - path: src/Defaults/MergeTag/Comment/CommentType.php + path: src/Repository/MergeTag/Comment/CommentType.php - message: "#^Parameter \\#1 \\$email of function sanitize_email expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/EmailTag.php + path: src/Repository/MergeTag/EmailTag.php - message: "#^Cannot cast mixed to string\\.$#" count: 1 - path: src/Defaults/MergeTag/HtmlTag.php + path: src/Repository/MergeTag/HtmlTag.php - message: "#^Cannot cast mixed to int\\.$#" count: 1 - path: src/Defaults/MergeTag/IntegerTag.php + path: src/Repository/MergeTag/IntegerTag.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/Media/AttachmentDirectUrl.php + path: src/Repository/MergeTag/Media/AttachmentDirectUrl.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/Media/AttachmentID.php + path: src/Repository/MergeTag/Media/AttachmentID.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/Media/AttachmentMimeType.php + path: src/Repository/MergeTag/Media/AttachmentMimeType.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/Media/AttachmentPage.php + path: src/Repository/MergeTag/Media/AttachmentPage.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/Media/AttachmentTitle.php + path: src/Repository/MergeTag/Media/AttachmentTitle.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/Post/FeaturedImageId.php + path: src/Repository/MergeTag/Post/FeaturedImageId.php - message: "#^Parameter \\#1 \\$attachment_id of function wp_get_attachment_image_url expects int, int\\|false given\\.$#" count: 1 - path: src/Defaults/MergeTag/Post/FeaturedImageUrl.php + path: src/Repository/MergeTag/Post/FeaturedImageUrl.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/Post/FeaturedImageUrl.php + path: src/Repository/MergeTag/Post/FeaturedImageUrl.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/Post/PostContent.php + path: src/Repository/MergeTag/Post/PostContent.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/Post/PostContentHtml.php + path: src/Repository/MergeTag/Post/PostContentHtml.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/Post/PostExcerpt.php + path: src/Repository/MergeTag/Post/PostExcerpt.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/Post/PostID.php + path: src/Repository/MergeTag/Post/PostID.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/Post/PostPermalink.php + path: src/Repository/MergeTag/Post/PostPermalink.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/Post/PostSlug.php + path: src/Repository/MergeTag/Post/PostSlug.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/Post/PostStatus.php + path: src/Repository/MergeTag/Post/PostStatus.php - message: "#^Access to an undefined property object\\:\\:\\$label\\.$#" count: 1 - path: src/Defaults/MergeTag/Post/PostTerms.php + path: src/Repository/MergeTag/Post/PostTerms.php - message: "#^Access to an undefined property object\\:\\:\\$name\\.$#" count: 2 - path: src/Defaults/MergeTag/Post/PostTerms.php + path: src/Repository/MergeTag/Post/PostTerms.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/Post/PostTerms.php + path: src/Repository/MergeTag/Post/PostTerms.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/Post/PostTitle.php + path: src/Repository/MergeTag/Post/PostTitle.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/Post/PostType.php + path: src/Repository/MergeTag/Post/PostType.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/Post/RevisionLink.php + path: src/Repository/MergeTag/Post/RevisionLink.php - message: "#^Parameter \\#2 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, int\\|WP_Post given\\.$#" count: 1 - path: src/Defaults/MergeTag/Post/RevisionLink.php + path: src/Repository/MergeTag/Post/RevisionLink.php - message: "#^Parameter \\#1 \\$attachment_id of function wp_get_attachment_image_url expects int, int\\|false given\\.$#" count: 1 - path: src/Defaults/MergeTag/Post/ThumbnailUrl.php + path: src/Repository/MergeTag/Post/ThumbnailUrl.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/Post/ThumbnailUrl.php + path: src/Repository/MergeTag/Post/ThumbnailUrl.php - message: "#^Parameter \\#1 \\$str of function sanitize_text_field expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/StringTag.php + path: src/Repository/MergeTag/StringTag.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/Taxonomy/TaxonomyName.php + path: src/Repository/MergeTag/Taxonomy/TaxonomyName.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/Taxonomy/TaxonomySlug.php + path: src/Repository/MergeTag/Taxonomy/TaxonomySlug.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/Taxonomy/TermDescription.php + path: src/Repository/MergeTag/Taxonomy/TermDescription.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/Taxonomy/TermID.php + path: src/Repository/MergeTag/Taxonomy/TermID.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/Taxonomy/TermName.php + path: src/Repository/MergeTag/Taxonomy/TermName.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/Taxonomy/TermPermalink.php + path: src/Repository/MergeTag/Taxonomy/TermPermalink.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/Taxonomy/TermSlug.php + path: src/Repository/MergeTag/Taxonomy/TermSlug.php - message: "#^Parameter \\#1 \\$url of function esc_url expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/UrlTag.php + path: src/Repository/MergeTag/UrlTag.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/User/Avatar.php + path: src/Repository/MergeTag/User/Avatar.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/User/AvatarUrl.php + path: src/Repository/MergeTag/User/AvatarUrl.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/User/UserBio.php + path: src/Repository/MergeTag/User/UserBio.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/User/UserDisplayName.php + path: src/Repository/MergeTag/User/UserDisplayName.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/User/UserEmail.php + path: src/Repository/MergeTag/User/UserEmail.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/User/UserFirstName.php + path: src/Repository/MergeTag/User/UserFirstName.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/User/UserID.php + path: src/Repository/MergeTag/User/UserID.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/User/UserLastName.php + path: src/Repository/MergeTag/User/UserLastName.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/User/UserLogin.php + path: src/Repository/MergeTag/User/UserLogin.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/User/UserNicename.php + path: src/Repository/MergeTag/User/UserNicename.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\MergeTag\\\\User\\\\UserPasswordResetLink\\:\\:\\$keyPropertyName \\(string\\) does not accept mixed\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\MergeTag\\\\User\\\\UserPasswordResetLink\\:\\:\\$keyPropertyName \\(string\\) does not accept mixed\\.$#" count: 1 - path: src/Defaults/MergeTag/User/UserPasswordResetLink.php + path: src/Repository/MergeTag/User/UserPasswordResetLink.php - message: "#^Cannot access property \\$name on WP_Role\\|null\\.$#" count: 1 - path: src/Defaults/MergeTag/User/UserRole.php + path: src/Repository/MergeTag/User/UserRole.php - message: "#^Parameter \\#1 \\$triggerPropertyName of method BracketSpace\\\\Notification\\\\Abstracts\\\\MergeTag\\:\\:setTriggerProp\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Defaults/MergeTag/User/UserRole.php + path: src/Repository/MergeTag/User/UserRole.php - message: "#^Parameter \\#1 \\$args of function get_users expects array\\{blog_id\\?\\: int, role\\?\\: array\\\\|string, role__in\\?\\: array\\, role__not_in\\?\\: array\\, meta_key\\?\\: array\\\\|string, meta_value\\?\\: array\\\\|string, meta_compare\\?\\: string, meta_compare_key\\?\\: string, \\.\\.\\.\\}, array\\{include\\: non\\-empty\\-array\\, fields\\: array\\{'user_email'\\}\\} given\\.$#" count: 1 - path: src/Defaults/Recipient/UserID.php + path: src/Repository/Recipient/UserID.php - message: "#^Parameter \\#3 \\$subject of function str_replace expects array\\|string, mixed given\\.$#" count: 1 - path: src/Defaults/Resolver/Basic.php + path: src/Repository/Resolver/Basic.php - message: "#^Access to an undefined property object\\:\\:\\$comment_approved\\.$#" count: 1 - path: src/Defaults/Trigger/Comment/CommentAdded.php + path: src/Repository/Trigger/Comment/CommentAdded.php - message: "#^Cannot call method getSetting\\(\\) on mixed\\.$#" count: 1 - path: src/Defaults/Trigger/Comment/CommentAdded.php + path: src/Repository/Trigger/Comment/CommentAdded.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\Trigger\\\\Comment\\\\CommentTrigger\\:\\:\\$comment \\(WP_Comment\\) does not accept object\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\Trigger\\\\Comment\\\\CommentTrigger\\:\\:\\$comment \\(WP_Comment\\) does not accept object\\.$#" count: 1 - path: src/Defaults/Trigger/Comment/CommentAdded.php + path: src/Repository/Trigger/Comment/CommentAdded.php - message: "#^Access to an undefined property object\\:\\:\\$comment_approved\\.$#" count: 1 - path: src/Defaults/Trigger/Comment/CommentApproved.php + path: src/Repository/Trigger/Comment/CommentApproved.php - message: "#^Cannot call method getSetting\\(\\) on mixed\\.$#" count: 1 - path: src/Defaults/Trigger/Comment/CommentApproved.php + path: src/Repository/Trigger/Comment/CommentApproved.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\Trigger\\\\Comment\\\\CommentTrigger\\:\\:\\$comment \\(WP_Comment\\) does not accept object\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\Trigger\\\\Comment\\\\CommentTrigger\\:\\:\\$comment \\(WP_Comment\\) does not accept object\\.$#" count: 1 - path: src/Defaults/Trigger/Comment/CommentApproved.php + path: src/Repository/Trigger/Comment/CommentApproved.php - message: "#^Access to an undefined property object\\:\\:\\$comment_approved\\.$#" count: 1 - path: src/Defaults/Trigger/Comment/CommentPublished.php + path: src/Repository/Trigger/Comment/CommentPublished.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\Trigger\\\\Comment\\\\CommentTrigger\\:\\:\\$comment \\(WP_Comment\\) does not accept object\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\Trigger\\\\Comment\\\\CommentTrigger\\:\\:\\$comment \\(WP_Comment\\) does not accept object\\.$#" count: 1 - path: src/Defaults/Trigger/Comment/CommentPublished.php + path: src/Repository/Trigger/Comment/CommentPublished.php - message: "#^Access to an undefined property object\\:\\:\\$comment_approved\\.$#" count: 1 - path: src/Defaults/Trigger/Comment/CommentReplied.php + path: src/Repository/Trigger/Comment/CommentReplied.php - message: "#^Cannot call method getSetting\\(\\) on mixed\\.$#" count: 1 - path: src/Defaults/Trigger/Comment/CommentReplied.php + path: src/Repository/Trigger/Comment/CommentReplied.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\Trigger\\\\Comment\\\\CommentTrigger\\:\\:\\$comment \\(WP_Comment\\) does not accept object\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\Trigger\\\\Comment\\\\CommentTrigger\\:\\:\\$comment \\(WP_Comment\\) does not accept object\\.$#" count: 1 - path: src/Defaults/Trigger/Comment/CommentReplied.php + path: src/Repository/Trigger/Comment/CommentReplied.php - message: "#^Access to an undefined property object\\:\\:\\$comment_approved\\.$#" count: 2 - path: src/Defaults/Trigger/Comment/CommentSpammed.php + path: src/Repository/Trigger/Comment/CommentSpammed.php - message: "#^Cannot call method getSetting\\(\\) on mixed\\.$#" count: 1 - path: src/Defaults/Trigger/Comment/CommentSpammed.php + path: src/Repository/Trigger/Comment/CommentSpammed.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\Trigger\\\\Comment\\\\CommentTrigger\\:\\:\\$comment \\(WP_Comment\\) does not accept object\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\Trigger\\\\Comment\\\\CommentTrigger\\:\\:\\$comment \\(WP_Comment\\) does not accept object\\.$#" count: 1 - path: src/Defaults/Trigger/Comment/CommentSpammed.php + path: src/Repository/Trigger/Comment/CommentSpammed.php - message: "#^Access to an undefined property object\\:\\:\\$comment_approved\\.$#" count: 2 - path: src/Defaults/Trigger/Comment/CommentTrashed.php + path: src/Repository/Trigger/Comment/CommentTrashed.php - message: "#^Cannot call method getSetting\\(\\) on mixed\\.$#" count: 1 - path: src/Defaults/Trigger/Comment/CommentTrashed.php + path: src/Repository/Trigger/Comment/CommentTrashed.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\Trigger\\\\Comment\\\\CommentTrigger\\:\\:\\$comment \\(WP_Comment\\) does not accept object\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\Trigger\\\\Comment\\\\CommentTrigger\\:\\:\\$comment \\(WP_Comment\\) does not accept object\\.$#" count: 1 - path: src/Defaults/Trigger/Comment/CommentTrashed.php + path: src/Repository/Trigger/Comment/CommentTrashed.php - message: "#^Parameter \\#1 \\$comment_id of function get_comment_type expects int\\|WP_Comment, mixed given\\.$#" count: 1 - path: src/Defaults/Trigger/Comment/CommentTrigger.php + path: src/Repository/Trigger/Comment/CommentTrigger.php - message: "#^Parameter \\#1 \\$slug of method BracketSpace\\\\Notification\\\\Abstracts\\\\Trigger\\:\\:__construct\\(\\) expects string\\|null, mixed given\\.$#" count: 1 - path: src/Defaults/Trigger/Comment/CommentTrigger.php + path: src/Repository/Trigger/Comment/CommentTrigger.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\Trigger\\\\Comment\\\\CommentTrigger\\:\\:\\$post \\(WP_Post\\) does not accept WP_Post\\|null\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\Trigger\\\\Comment\\\\CommentTrigger\\:\\:\\$post \\(WP_Post\\) does not accept WP_Post\\|null\\.$#" count: 1 - path: src/Defaults/Trigger/Comment/CommentTrigger.php + path: src/Repository/Trigger/Comment/CommentTrigger.php - message: "#^Access to an undefined property object\\:\\:\\$comment_approved\\.$#" count: 1 - path: src/Defaults/Trigger/Comment/CommentUnapproved.php + path: src/Repository/Trigger/Comment/CommentUnapproved.php - message: "#^Cannot call method getSetting\\(\\) on mixed\\.$#" count: 1 - path: src/Defaults/Trigger/Comment/CommentUnapproved.php + path: src/Repository/Trigger/Comment/CommentUnapproved.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\Trigger\\\\Comment\\\\CommentTrigger\\:\\:\\$comment \\(WP_Comment\\) does not accept object\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\Trigger\\\\Comment\\\\CommentTrigger\\:\\:\\$comment \\(WP_Comment\\) does not accept object\\.$#" count: 1 - path: src/Defaults/Trigger/Comment/CommentUnapproved.php + path: src/Repository/Trigger/Comment/CommentUnapproved.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\Trigger\\\\Media\\\\MediaTrigger\\:\\:\\$attachment \\(WP_Post\\) does not accept WP_Post\\|null\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\Trigger\\\\Media\\\\MediaTrigger\\:\\:\\$attachment \\(WP_Post\\) does not accept WP_Post\\|null\\.$#" count: 1 - path: src/Defaults/Trigger/Media/MediaAdded.php + path: src/Repository/Trigger/Media/MediaAdded.php - message: "#^Cannot access property \\$post_date_gmt on WP_Post\\|null\\.$#" count: 1 - path: src/Defaults/Trigger/Media/MediaTrashed.php + path: src/Repository/Trigger/Media/MediaTrashed.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\Trigger\\\\Media\\\\MediaTrigger\\:\\:\\$attachment \\(WP_Post\\) does not accept WP_Post\\|null\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\Trigger\\\\Media\\\\MediaTrigger\\:\\:\\$attachment \\(WP_Post\\) does not accept WP_Post\\|null\\.$#" count: 1 - path: src/Defaults/Trigger/Media/MediaTrashed.php + path: src/Repository/Trigger/Media/MediaTrashed.php - message: "#^Cannot access property \\$post_date_gmt on WP_Post\\|null\\.$#" count: 1 - path: src/Defaults/Trigger/Media/MediaUpdated.php + path: src/Repository/Trigger/Media/MediaUpdated.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\Trigger\\\\Media\\\\MediaTrigger\\:\\:\\$attachment \\(WP_Post\\) does not accept WP_Post\\|null\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\Trigger\\\\Media\\\\MediaTrigger\\:\\:\\$attachment \\(WP_Post\\) does not accept WP_Post\\|null\\.$#" count: 1 - path: src/Defaults/Trigger/Media/MediaUpdated.php + path: src/Repository/Trigger/Media/MediaUpdated.php - message: "#^Cannot cast mixed to int\\.$#" count: 1 - path: src/Defaults/Trigger/Post/PostAdded.php + path: src/Repository/Trigger/Post/PostAdded.php - message: "#^Cannot cast mixed to int\\.$#" count: 1 - path: src/Defaults/Trigger/Post/PostApproved.php + path: src/Repository/Trigger/Post/PostApproved.php - message: "#^Cannot cast mixed to int\\.$#" count: 1 - path: src/Defaults/Trigger/Post/PostDrafted.php + path: src/Repository/Trigger/Post/PostDrafted.php - message: "#^Cannot cast mixed to int\\.$#" count: 1 - path: src/Defaults/Trigger/Post/PostPending.php + path: src/Repository/Trigger/Post/PostPending.php - message: "#^Cannot cast mixed to int\\.$#" count: 1 - path: src/Defaults/Trigger/Post/PostPublished.php + path: src/Repository/Trigger/Post/PostPublished.php - message: "#^Cannot cast mixed to int\\.$#" count: 1 - path: src/Defaults/Trigger/Post/PostPublishedPrivately.php + path: src/Repository/Trigger/Post/PostPublishedPrivately.php - message: "#^Cannot cast mixed to int\\.$#" count: 1 - path: src/Defaults/Trigger/Post/PostScheduled.php + path: src/Repository/Trigger/Post/PostScheduled.php - message: "#^Cannot cast mixed to int\\.$#" count: 1 - path: src/Defaults/Trigger/Post/PostTrashed.php + path: src/Repository/Trigger/Post/PostTrashed.php - message: "#^Parameter \\#1 \\$slug of method BracketSpace\\\\Notification\\\\Abstracts\\\\Trigger\\:\\:__construct\\(\\) expects string\\|null, mixed given\\.$#" count: 1 - path: src/Defaults/Trigger/Post/PostTrigger.php + path: src/Repository/Trigger/Post/PostTrigger.php - message: "#^Cannot cast mixed to int\\.$#" count: 1 - path: src/Defaults/Trigger/Post/PostUpdated.php + path: src/Repository/Trigger/Post/PostUpdated.php - message: "#^Cannot access property \\$user_id on WP_User_Request\\|false\\.$#" count: 1 - path: src/Defaults/Trigger/Privacy/DataEraseRequest.php + path: src/Repository/Trigger/Privacy/DataEraseRequest.php - - message: "#^Method BracketSpace\\\\Notification\\\\Defaults\\\\Trigger\\\\Privacy\\\\DataEraseRequest\\:\\:context\\(\\) has no return type specified\\.$#" + message: "#^Method BracketSpace\\\\Notification\\\\Repository\\\\Trigger\\\\Privacy\\\\DataEraseRequest\\:\\:context\\(\\) has no return type specified\\.$#" count: 1 - path: src/Defaults/Trigger/Privacy/DataEraseRequest.php + path: src/Repository/Trigger/Privacy/DataEraseRequest.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\Trigger\\\\Privacy\\\\PrivacyTrigger\\:\\:\\$request \\(WP_User_Request\\) does not accept WP_User_Request\\|false\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\Trigger\\\\Privacy\\\\PrivacyTrigger\\:\\:\\$request \\(WP_User_Request\\) does not accept WP_User_Request\\|false\\.$#" count: 1 - path: src/Defaults/Trigger/Privacy/DataEraseRequest.php + path: src/Repository/Trigger/Privacy/DataEraseRequest.php - message: "#^Cannot access property \\$user_id on WP_User_Request\\|false\\.$#" count: 1 - path: src/Defaults/Trigger/Privacy/DataErased.php + path: src/Repository/Trigger/Privacy/DataErased.php - - message: "#^Method BracketSpace\\\\Notification\\\\Defaults\\\\Trigger\\\\Privacy\\\\DataErased\\:\\:context\\(\\) has no return type specified\\.$#" + message: "#^Method BracketSpace\\\\Notification\\\\Repository\\\\Trigger\\\\Privacy\\\\DataErased\\:\\:context\\(\\) has no return type specified\\.$#" count: 1 - path: src/Defaults/Trigger/Privacy/DataErased.php + path: src/Repository/Trigger/Privacy/DataErased.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\Trigger\\\\Privacy\\\\PrivacyTrigger\\:\\:\\$request \\(WP_User_Request\\) does not accept WP_User_Request\\|false\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\Trigger\\\\Privacy\\\\PrivacyTrigger\\:\\:\\$request \\(WP_User_Request\\) does not accept WP_User_Request\\|false\\.$#" count: 1 - path: src/Defaults/Trigger/Privacy/DataErased.php + path: src/Repository/Trigger/Privacy/DataErased.php - message: "#^Cannot access property \\$user_id on WP_User_Request\\|false\\.$#" count: 1 - path: src/Defaults/Trigger/Privacy/DataExportRequest.php + path: src/Repository/Trigger/Privacy/DataExportRequest.php - - message: "#^Method BracketSpace\\\\Notification\\\\Defaults\\\\Trigger\\\\Privacy\\\\DataExportRequest\\:\\:context\\(\\) has no return type specified\\.$#" + message: "#^Method BracketSpace\\\\Notification\\\\Repository\\\\Trigger\\\\Privacy\\\\DataExportRequest\\:\\:context\\(\\) has no return type specified\\.$#" count: 1 - path: src/Defaults/Trigger/Privacy/DataExportRequest.php + path: src/Repository/Trigger/Privacy/DataExportRequest.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\Trigger\\\\Privacy\\\\PrivacyTrigger\\:\\:\\$request \\(WP_User_Request\\) does not accept WP_User_Request\\|false\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\Trigger\\\\Privacy\\\\PrivacyTrigger\\:\\:\\$request \\(WP_User_Request\\) does not accept WP_User_Request\\|false\\.$#" count: 1 - path: src/Defaults/Trigger/Privacy/DataExportRequest.php + path: src/Repository/Trigger/Privacy/DataExportRequest.php - message: "#^Cannot access property \\$user_id on WP_User_Request\\|false\\.$#" count: 1 - path: src/Defaults/Trigger/Privacy/DataExported.php + path: src/Repository/Trigger/Privacy/DataExported.php - - message: "#^Method BracketSpace\\\\Notification\\\\Defaults\\\\Trigger\\\\Privacy\\\\DataExported\\:\\:context\\(\\) has no return type specified\\.$#" + message: "#^Method BracketSpace\\\\Notification\\\\Repository\\\\Trigger\\\\Privacy\\\\DataExported\\:\\:context\\(\\) has no return type specified\\.$#" count: 1 - path: src/Defaults/Trigger/Privacy/DataExported.php + path: src/Repository/Trigger/Privacy/DataExported.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\Trigger\\\\Privacy\\\\PrivacyTrigger\\:\\:\\$request \\(WP_User_Request\\) does not accept WP_User_Request\\|false\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\Trigger\\\\Privacy\\\\PrivacyTrigger\\:\\:\\$request \\(WP_User_Request\\) does not accept WP_User_Request\\|false\\.$#" count: 1 - path: src/Defaults/Trigger/Privacy/DataExported.php + path: src/Repository/Trigger/Privacy/DataExported.php - message: "#^Parameter \\#1 \\$slug of method BracketSpace\\\\Notification\\\\Abstracts\\\\Trigger\\:\\:__construct\\(\\) expects string\\|null, mixed given\\.$#" count: 1 - path: src/Defaults/Trigger/Taxonomy/TermTrigger.php + path: src/Repository/Trigger/Taxonomy/TermTrigger.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\Trigger\\\\User\\\\UserDeleted\\:\\:\\$userMeta \\(array\\) does not accept mixed\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\Trigger\\\\User\\\\UserDeleted\\:\\:\\$userMeta \\(array\\) does not accept mixed\\.$#" count: 1 - path: src/Defaults/Trigger/User/UserDeleted.php + path: src/Repository/Trigger/User/UserDeleted.php - message: "#^Cannot access offset 'hash' on mixed\\.$#" count: 1 - path: src/Defaults/Trigger/User/UserEmailChangeRequest.php + path: src/Repository/Trigger/User/UserEmailChangeRequest.php - message: "#^Cannot access offset 'newemail' on mixed\\.$#" count: 1 - path: src/Defaults/Trigger/User/UserEmailChangeRequest.php + path: src/Repository/Trigger/User/UserEmailChangeRequest.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\Trigger\\\\User\\\\UserEmailChangeRequest\\:\\:\\$newUserEmail \\(string\\) does not accept mixed\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\Trigger\\\\User\\\\UserEmailChangeRequest\\:\\:\\$newUserEmail \\(string\\) does not accept mixed\\.$#" count: 1 - path: src/Defaults/Trigger/User/UserEmailChangeRequest.php + path: src/Repository/Trigger/User/UserEmailChangeRequest.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\Trigger\\\\User\\\\UserEmailChangeRequest\\:\\:\\$userMeta \\(array\\) does not accept mixed\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\Trigger\\\\User\\\\UserEmailChangeRequest\\:\\:\\$userMeta \\(array\\) does not accept mixed\\.$#" count: 1 - path: src/Defaults/Trigger/User/UserEmailChangeRequest.php + path: src/Repository/Trigger/User/UserEmailChangeRequest.php - message: "#^Access to an undefined property object\\:\\:\\$ID\\.$#" count: 1 - path: src/Defaults/Trigger/User/UserLogin.php + path: src/Repository/Trigger/User/UserLogin.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\Trigger\\\\User\\\\UserLogin\\:\\:\\$userMeta \\(array\\) does not accept mixed\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\Trigger\\\\User\\\\UserLogin\\:\\:\\$userMeta \\(array\\) does not accept mixed\\.$#" count: 1 - path: src/Defaults/Trigger/User/UserLogin.php + path: src/Repository/Trigger/User/UserLogin.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\Trigger\\\\User\\\\UserLogout\\:\\:\\$userMeta \\(array\\) does not accept mixed\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\Trigger\\\\User\\\\UserLogout\\:\\:\\$userMeta \\(array\\) does not accept mixed\\.$#" count: 1 - path: src/Defaults/Trigger/User/UserLogout.php + path: src/Repository/Trigger/User/UserLogout.php - message: "#^Access to an undefined property object\\:\\:\\$ID\\.$#" count: 1 - path: src/Defaults/Trigger/User/UserPasswordChanged.php + path: src/Repository/Trigger/User/UserPasswordChanged.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\Trigger\\\\User\\\\UserPasswordChanged\\:\\:\\$userMeta \\(array\\) does not accept mixed\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\Trigger\\\\User\\\\UserPasswordChanged\\:\\:\\$userMeta \\(array\\) does not accept mixed\\.$#" count: 1 - path: src/Defaults/Trigger/User/UserPasswordChanged.php + path: src/Repository/Trigger/User/UserPasswordChanged.php - message: "#^Cannot access property \\$data on WP_User\\|false\\.$#" count: 1 - path: src/Defaults/Trigger/User/UserPasswordResetRequest.php + path: src/Repository/Trigger/User/UserPasswordResetRequest.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\Trigger\\\\User\\\\UserProfileUpdated\\:\\:\\$userMeta \\(array\\) does not accept mixed\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\Trigger\\\\User\\\\UserProfileUpdated\\:\\:\\$userMeta \\(array\\) does not accept mixed\\.$#" count: 1 - path: src/Defaults/Trigger/User/UserProfileUpdated.php + path: src/Repository/Trigger/User/UserProfileUpdated.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\Trigger\\\\User\\\\UserRegistered\\:\\:\\$userMeta \\(array\\) does not accept mixed\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\Trigger\\\\User\\\\UserRegistered\\:\\:\\$userMeta \\(array\\) does not accept mixed\\.$#" count: 1 - path: src/Defaults/Trigger/User/UserRegistered.php + path: src/Repository/Trigger/User/UserRegistered.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\Trigger\\\\User\\\\UserRoleChanged\\:\\:\\$userMeta \\(array\\) does not accept mixed\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\Trigger\\\\User\\\\UserRoleChanged\\:\\:\\$userMeta \\(array\\) does not accept mixed\\.$#" count: 1 - path: src/Defaults/Trigger/User/UserRoleChanged.php + path: src/Repository/Trigger/User/UserRoleChanged.php - message: "#^Cannot access offset 'hash' on mixed\\.$#" count: 1 - path: src/Defaults/Trigger/WordPress/EmailChangeRequest.php + path: src/Repository/Trigger/WordPress/EmailChangeRequest.php - message: "#^Cannot access offset 'newemail' on mixed\\.$#" count: 1 - path: src/Defaults/Trigger/WordPress/EmailChangeRequest.php + path: src/Repository/Trigger/WordPress/EmailChangeRequest.php - - message: "#^Property BracketSpace\\\\Notification\\\\Defaults\\\\Trigger\\\\WordPress\\\\EmailChangeRequest\\:\\:\\$newAdminEmail \\(string\\) does not accept mixed\\.$#" + message: "#^Property BracketSpace\\\\Notification\\\\Repository\\\\Trigger\\\\WordPress\\\\EmailChangeRequest\\:\\:\\$newAdminEmail \\(string\\) does not accept mixed\\.$#" count: 1 - path: src/Defaults/Trigger/WordPress/EmailChangeRequest.php + path: src/Repository/Trigger/WordPress/EmailChangeRequest.php - message: "#^Argument of an invalid type array\\|false supplied for foreach, only iterables are supported\\.$#" count: 1 - path: src/Defaults/Trigger/WordPress/UpdatesAvailable.php + path: src/Repository/Trigger/WordPress/UpdatesAvailable.php - message: "#^Cannot access property \\$current on mixed\\.$#" count: 1 - path: src/Defaults/Trigger/WordPress/UpdatesAvailable.php + path: src/Repository/Trigger/WordPress/UpdatesAvailable.php - message: "#^Cannot access property \\$version on mixed\\.$#" count: 1 - path: src/Defaults/Trigger/WordPress/UpdatesAvailable.php + path: src/Repository/Trigger/WordPress/UpdatesAvailable.php - message: "#^Cannot call method getSetting\\(\\) on mixed\\.$#" count: 1 - path: src/Defaults/Trigger/WordPress/UpdatesAvailable.php - - - - message: "#^Parameter \\#1 \\$updateType of method BracketSpace\\\\Notification\\\\Defaults\\\\Trigger\\\\WordPress\\\\UpdatesAvailable\\:\\:getUpdatesCount\\(\\) expects string, mixed given\\.$#" - count: 1 - path: src/Defaults/Trigger/WordPress/UpdatesAvailable.php - - - - message: "#^Parameter \\#1 \\$updateType of method BracketSpace\\\\Notification\\\\Defaults\\\\Trigger\\\\WordPress\\\\UpdatesAvailable\\:\\:hasUpdates\\(\\) expects string, mixed given\\.$#" - count: 1 - path: src/Defaults/Trigger/WordPress/UpdatesAvailable.php + path: src/Repository/Trigger/WordPress/UpdatesAvailable.php - - message: "#^Invalid type object to throw\\.$#" + message: "#^Parameter \\#1 \\$updateType of method BracketSpace\\\\Notification\\\\Repository\\\\Trigger\\\\WordPress\\\\UpdatesAvailable\\:\\:getUpdatesCount\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/ErrorHandler.php - - - - message: "#^Cannot call method getSetting\\(\\) on mixed\\.$#" - count: 14 - path: src/Integration/WordPressEmails.php + path: src/Repository/Trigger/WordPress/UpdatesAvailable.php - - message: "#^Method BracketSpace\\\\Notification\\\\Integration\\\\WordPressEmails\\:\\:getSettingForUserRole\\(\\) is unused\\.$#" + message: "#^Parameter \\#1 \\$updateType of method BracketSpace\\\\Notification\\\\Repository\\\\Trigger\\\\WordPress\\\\UpdatesAvailable\\:\\:hasUpdates\\(\\) expects string, mixed given\\.$#" count: 1 - path: src/Integration/WordPressEmails.php - - - - message: "#^Cannot call method getSetting\\(\\) on mixed\\.$#" - count: 1 - path: src/Integration/WordPressIntegration.php - - - - message: "#^Cannot call method getSetting\\(\\) on mixed\\.$#" - count: 2 - path: src/Repository/CarrierRepository.php - - - - message: "#^Parameter \\#1 \\$carrier of static method BracketSpace\\\\Notification\\\\Register\\:\\:carrier\\(\\) expects BracketSpace\\\\Notification\\\\Interfaces\\\\Sendable, mixed given\\.$#" - count: 3 - path: src/Repository/CarrierRepository.php - - - - message: "#^Parameter \\#1 \\$data of class BracketSpace\\\\Notification\\\\Core\\\\Notification constructor expects array\\{hash\\?\\: string, title\\?\\: string, trigger\\?\\: BracketSpace\\\\Notification\\\\Interfaces\\\\Triggerable, carriers\\?\\: array\\, enabled\\?\\: bool, extras\\?\\: array\\, version\\?\\: int\\}, array\\{hash\\?\\: string, title\\?\\: string, trigger\\?\\: BracketSpace\\\\Notification\\\\Interfaces\\\\Triggerable\\|string\\|null, carriers\\?\\: array\\\\|BracketSpace\\\\Notification\\\\Interfaces\\\\Sendable\\>, enabled\\?\\: bool, extras\\?\\: array\\, version\\?\\: int\\} given\\.$#" - count: 1 - path: src/Repository/Converter/ArrayConverter.php + path: src/Repository/Trigger/WordPress/UpdatesAvailable.php - message: "#^Cannot call method getSetting\\(\\) on mixed\\.$#" diff --git a/readme.txt b/readme.txt index 1a47436a1..35aae9f16 100644 --- a/readme.txt +++ b/readme.txt @@ -311,6 +311,7 @@ Yes! We're offering a [custom plugin development](https://bracketspace.com/custo - In Post Triggers, dynamic property `$trigger->{$post_type}` has been replaced with static prop `$trigger->post`. - The same as above applies to Post Trigger datetime tags, namely: postCreationDatetime, postPublicationDatetime, and postModificationDatetime. - Hook `notification/data/save` and `notification/data/save/after` now pass Core\Notification instance in the first param instead of the WordPress adapter instance. +- Namespace `BracketSpace\Notification\Defaults\` has been changed to `BracketSpace\Notification\Repository\` Renamed runtime components: - core_settings -> settings @@ -364,6 +365,7 @@ Removed deprecated hooks: * [Changed] Notification table is now filtered from uneccessary columns. * [Changed] Multiple function, method and hook deprecations, see above for detailed list and replacements. * [Changed] Runtime components names, see above for detailed list and replacements. +* [Changed] Namespace `BracketSpace\Notification\Defaults\` to `BracketSpace\Notification\Repository\`. * [Fixed] Shortcodes being uncorrectly stripped leaving closing "]" behind. * [Fixed] PHP 8.2 deprecations. * [Fixed] Stripping shortcodes in carrier fields. diff --git a/src/Abstracts/Carrier.php b/src/Abstracts/Carrier.php index a87906e95..cf9b695a8 100644 --- a/src/Abstracts/Carrier.php +++ b/src/Abstracts/Carrier.php @@ -11,8 +11,8 @@ namespace BracketSpace\Notification\Abstracts; use BracketSpace\Notification\Core\Resolver; -use BracketSpace\Notification\Defaults\Field; -use BracketSpace\Notification\Defaults\Field\RecipientsField; +use BracketSpace\Notification\Repository\Field; +use BracketSpace\Notification\Repository\Field\RecipientsField; use BracketSpace\Notification\Dependencies\Micropackage\Casegnostic\Casegnostic; use BracketSpace\Notification\Interfaces; use BracketSpace\Notification\Interfaces\Triggerable; @@ -39,7 +39,7 @@ abstract class Carrier implements Interfaces\Sendable /** * Recipients form field closure * - * @var callable(): \BracketSpace\Notification\Defaults\Field\RecipientsField|null + * @var callable(): \BracketSpace\Notification\Repository\Field\RecipientsField|null */ protected $recipientsField; @@ -284,7 +284,7 @@ public function hasRecipientsField() * Gets the recipients field * Calls the field closure. * - * @return \BracketSpace\Notification\Defaults\Field\RecipientsField|null + * @return \BracketSpace\Notification\Repository\Field\RecipientsField|null * @since 8.0.0 */ public function getRecipientsField() diff --git a/src/Abstracts/Trigger.php b/src/Abstracts/Trigger.php index 242284dbb..18a6daf13 100644 --- a/src/Abstracts/Trigger.php +++ b/src/Abstracts/Trigger.php @@ -212,7 +212,7 @@ public function addMergeTag(Taggable $mergeTag) public function addQuickMergeTag($propertyName, $label, $group = null) { return $this->addMergeTag( - new \BracketSpace\Notification\Defaults\MergeTag\StringTag( + new \BracketSpace\Notification\Repository\MergeTag\StringTag( [ 'slug' => $propertyName, 'name' => $label, diff --git a/src/Api/Controller/RepeaterController.php b/src/Api/Controller/RepeaterController.php index bed474902..095c9b890 100644 --- a/src/Api/Controller/RepeaterController.php +++ b/src/Api/Controller/RepeaterController.php @@ -52,7 +52,7 @@ class RepeaterController public function formFieldData($data = null) { if (empty($data)) { - /** @var \BracketSpace\Notification\Defaults\Field\RepeaterField */ + /** @var \BracketSpace\Notification\Repository\Field\RepeaterField */ $carrierFields = $this->getCarrierFields(); $data = $carrierFields->fields; } diff --git a/src/Api/Controller/SectionRepeaterController.php b/src/Api/Controller/SectionRepeaterController.php index 57a17c718..a1bb13fcf 100644 --- a/src/Api/Controller/SectionRepeaterController.php +++ b/src/Api/Controller/SectionRepeaterController.php @@ -86,7 +86,7 @@ public function formData() { $values = $this->getValues($this->postId, $this->carrier, $this->field) ?? []; - /** @var \BracketSpace\Notification\Defaults\Field\SectionRepeater */ + /** @var \BracketSpace\Notification\Repository\Field\SectionRepeater */ $field = $this->getCarrierFields(); $populatedSections = $this->getSectionsFields($field->sections); diff --git a/src/Integration/WordPressIntegration.php b/src/Integration/WordPressIntegration.php index 19470999c..5a36bebf2 100644 --- a/src/Integration/WordPressIntegration.php +++ b/src/Integration/WordPressIntegration.php @@ -92,13 +92,13 @@ public static function clearNotificationsCache() public function identifyTrigger($triggerKey, Triggerable $trigger) { $coveredTriggers = [ - 'BracketSpace\Notification\Defaults\Trigger\Post\PostTrigger' => static function ($trigger) { + 'BracketSpace\Notification\Repository\Trigger\Post\PostTrigger' => static function ($trigger) { return $trigger->{$trigger->getPostType()}->ID; }, - 'BracketSpace\Notification\Defaults\Trigger\User\UserTrigger' => static function ($trigger) { + 'BracketSpace\Notification\Repository\Trigger\User\UserTrigger' => static function ($trigger) { return $trigger->userId; }, - 'BracketSpace\Notification\Defaults\Trigger\Comment\CommentTrigger' => static function ($trigger) { + 'BracketSpace\Notification\Repository\Trigger\Comment\CommentTrigger' => static function ($trigger) { return $trigger->comment->commentID; }, ]; diff --git a/src/Interfaces/Sendable.php b/src/Interfaces/Sendable.php index 49c9ae597..dbbb76cee 100644 --- a/src/Interfaces/Sendable.php +++ b/src/Interfaces/Sendable.php @@ -114,7 +114,7 @@ public function getFieldValue($fieldSlug); * Gets the recipients field * Calls the field closure. * - * @return \BracketSpace\Notification\Defaults\Field\RecipientsField|null + * @return \BracketSpace\Notification\Repository\Field\RecipientsField|null * @since 8.0.0 */ public function getRecipientsField(); diff --git a/src/Defaults/Carrier/Email.php b/src/Repository/Carrier/Email.php similarity index 98% rename from src/Defaults/Carrier/Email.php rename to src/Repository/Carrier/Email.php index f2c561cb9..6c4711286 100644 --- a/src/Defaults/Carrier/Email.php +++ b/src/Repository/Carrier/Email.php @@ -8,11 +8,11 @@ declare(strict_types=1); -namespace BracketSpace\Notification\Defaults\Carrier; +namespace BracketSpace\Notification\Repository\Carrier; use BracketSpace\Notification\Abstracts; use BracketSpace\Notification\Core\Debugging; -use BracketSpace\Notification\Defaults\Field; +use BracketSpace\Notification\Repository\Field; use BracketSpace\Notification\Interfaces\Triggerable; /** diff --git a/src/Defaults/Carrier/Webhook.php b/src/Repository/Carrier/Webhook.php similarity index 98% rename from src/Defaults/Carrier/Webhook.php rename to src/Repository/Carrier/Webhook.php index 9464c5ed5..6a3e1a6eb 100644 --- a/src/Defaults/Carrier/Webhook.php +++ b/src/Repository/Carrier/Webhook.php @@ -8,11 +8,11 @@ declare(strict_types=1); -namespace BracketSpace\Notification\Defaults\Carrier; +namespace BracketSpace\Notification\Repository\Carrier; use BracketSpace\Notification\Interfaces\Triggerable; use BracketSpace\Notification\Abstracts; -use BracketSpace\Notification\Defaults\Field; +use BracketSpace\Notification\Repository\Field; use BracketSpace\Notification\Traits\Webhook as WebhookTrait; /** diff --git a/src/Defaults/Carrier/WebhookJson.php b/src/Repository/Carrier/WebhookJson.php similarity index 97% rename from src/Defaults/Carrier/WebhookJson.php rename to src/Repository/Carrier/WebhookJson.php index 38aa45242..11041a949 100644 --- a/src/Defaults/Carrier/WebhookJson.php +++ b/src/Repository/Carrier/WebhookJson.php @@ -8,11 +8,11 @@ declare(strict_types=1); -namespace BracketSpace\Notification\Defaults\Carrier; +namespace BracketSpace\Notification\Repository\Carrier; use BracketSpace\Notification\Interfaces\Triggerable; use BracketSpace\Notification\Abstracts; -use BracketSpace\Notification\Defaults\Field; +use BracketSpace\Notification\Repository\Field; use BracketSpace\Notification\Traits\Webhook as WebhookTrait; /** diff --git a/src/Repository/CarrierRepository.php b/src/Repository/CarrierRepository.php index 2a04a5cf8..54dff0490 100644 --- a/src/Repository/CarrierRepository.php +++ b/src/Repository/CarrierRepository.php @@ -1,7 +1,7 @@