From b3d62fec157f4e6635ea257bb4c27783fd85f6ca Mon Sep 17 00:00:00 2001 From: BracketSpaceWorker Date: Wed, 2 Oct 2024 10:42:38 +0000 Subject: [PATCH] Version bump --- compat/src-deprecated/Abstracts/Adapter.php | 4 +- compat/src-deprecated/Adapter/JSON.php | 2 +- compat/src-deprecated/Adapter/WordPress.php | 2 +- .../Database/Queries/NotificationQueries.php | 4 +- .../Defaults/Carrier/Webhook.php | 2 +- .../Defaults/Carrier/WebhookJson.php | 2 +- .../Defaults/Recipient/Webhook.php | 2 +- compat/src-deprecated/Traits/Webhook.php | 2 +- compat/src-deprecated/functions.php | 44 +++++++++---------- compat/src-deprecated/namespaces.php | 2 +- notification.php | 2 +- readme.txt | 8 ++-- src/Admin/ImportExport.php | 2 +- src/Admin/PostType.php | 8 ++-- src/Compat/WebhookCompat.php | 2 +- src/Core/Debugging.php | 2 +- src/Core/Notification.php | 8 ++-- src/Core/Upgrade.php | 2 +- src/Database/NotificationDatabaseService.php | 4 +- src/Integration/WordPressEmails.php | 2 +- src/Integration/WordPressIntegration.php | 2 +- src/Interfaces/Convertable.php | 4 +- src/Register.php | 6 +-- src/Repository/Carrier/BaseCarrier.php | 2 +- src/Repository/Converter/ArrayConverter.php | 6 +-- src/Repository/Converter/JsonConverter.php | 6 +-- src/Repository/MergeTag/DateTime/Date.php | 6 +-- src/Repository/MergeTag/DateTime/DateTime.php | 6 +-- src/Repository/MergeTag/DateTime/Time.php | 6 +-- src/Repository/Trigger/BaseTrigger.php | 2 +- src/Repository/Trigger/Post/PostTrigger.php | 2 +- src/Runtime.php | 10 ++--- src/Traits/Storage.php | 2 +- tests/UnitTestCase.php | 4 +- 34 files changed, 85 insertions(+), 85 deletions(-) diff --git a/compat/src-deprecated/Abstracts/Adapter.php b/compat/src-deprecated/Abstracts/Adapter.php index 985eb4c4..e4082c7c 100644 --- a/compat/src-deprecated/Abstracts/Adapter.php +++ b/compat/src-deprecated/Abstracts/Adapter.php @@ -19,7 +19,7 @@ * Adapter class * * @mixin \BracketSpace\Notification\Core\Notification - * @deprecated [Next] + * @deprecated 9.0.0 */ abstract class Adapter implements Interfaces\Adaptable { @@ -39,7 +39,7 @@ abstract class Adapter implements Interfaces\Adaptable */ public function __construct(Notification $notification) { - notification_deprecated_class( __CLASS__, '[Next]' ); + notification_deprecated_class( __CLASS__, '9.0.0' ); $this->notification = $notification; } diff --git a/compat/src-deprecated/Adapter/JSON.php b/compat/src-deprecated/Adapter/JSON.php index 952d27d9..1372f6b3 100644 --- a/compat/src-deprecated/Adapter/JSON.php +++ b/compat/src-deprecated/Adapter/JSON.php @@ -15,7 +15,7 @@ /** * JSON Adapter class * - * @deprecated [Next] + * @deprecated 9.0.0 */ class JSON extends Abstracts\Adapter { diff --git a/compat/src-deprecated/Adapter/WordPress.php b/compat/src-deprecated/Adapter/WordPress.php index e86616ef..f50c15b3 100644 --- a/compat/src-deprecated/Adapter/WordPress.php +++ b/compat/src-deprecated/Adapter/WordPress.php @@ -17,7 +17,7 @@ * WordPress Adapter class * * @mixin \BracketSpace\Notification\Core\Notification - * @deprecated [Next] + * @deprecated 9.0.0 */ class WordPress extends Abstracts\Adapter { diff --git a/compat/src-deprecated/Database/Queries/NotificationQueries.php b/compat/src-deprecated/Database/Queries/NotificationQueries.php index 18d119ae..a88ea50a 100644 --- a/compat/src-deprecated/Database/Queries/NotificationQueries.php +++ b/compat/src-deprecated/Database/Queries/NotificationQueries.php @@ -16,7 +16,7 @@ /** * Notification Queries class * - * @deprecated [Next] + * @deprecated 9.0.0 */ class NotificationQueries { @@ -25,7 +25,7 @@ class NotificationQueries */ public function __construct() { - notification_deprecated_class( __CLASS__, '[Next]' ); + notification_deprecated_class( __CLASS__, '9.0.0' ); } /** diff --git a/compat/src-deprecated/Defaults/Carrier/Webhook.php b/compat/src-deprecated/Defaults/Carrier/Webhook.php index dcf9f765..31927a23 100644 --- a/compat/src-deprecated/Defaults/Carrier/Webhook.php +++ b/compat/src-deprecated/Defaults/Carrier/Webhook.php @@ -18,7 +18,7 @@ /** * Webhook Carrier * - * @deprecated [Next] + * @deprecated 9.0.0 */ class Webhook extends BaseCarrier { diff --git a/compat/src-deprecated/Defaults/Carrier/WebhookJson.php b/compat/src-deprecated/Defaults/Carrier/WebhookJson.php index bf0faef4..7bfbee1e 100644 --- a/compat/src-deprecated/Defaults/Carrier/WebhookJson.php +++ b/compat/src-deprecated/Defaults/Carrier/WebhookJson.php @@ -18,7 +18,7 @@ /** * Webhook Carrier * - * @deprecated [Next] + * @deprecated 9.0.0 */ class WebhookJson extends BaseCarrier { diff --git a/compat/src-deprecated/Defaults/Recipient/Webhook.php b/compat/src-deprecated/Defaults/Recipient/Webhook.php index 53d4ba18..1342cba6 100644 --- a/compat/src-deprecated/Defaults/Recipient/Webhook.php +++ b/compat/src-deprecated/Defaults/Recipient/Webhook.php @@ -16,7 +16,7 @@ /** * Webhook recipient * - * @deprecated [Next] + * @deprecated 9.0.0 */ class Webhook extends BaseRecipient { diff --git a/compat/src-deprecated/Traits/Webhook.php b/compat/src-deprecated/Traits/Webhook.php index 48c4fad8..388f67e4 100644 --- a/compat/src-deprecated/Traits/Webhook.php +++ b/compat/src-deprecated/Traits/Webhook.php @@ -15,7 +15,7 @@ /** * Webhook trait * - * @deprecated [Next] + * @deprecated 9.0.0 */ trait Webhook { diff --git a/compat/src-deprecated/functions.php b/compat/src-deprecated/functions.php index 3f9289c3..64792a74 100644 --- a/compat/src-deprecated/functions.php +++ b/compat/src-deprecated/functions.php @@ -476,10 +476,10 @@ function notification_get_global_merge_tags() { * @param \BracketSpace\Notification\Core\Notification $notification Notification object. * @return \BracketSpace\Notification\Interfaces\Adaptable * @since 6.0.0 - * @deprecated [Next] + * @deprecated 9.0.0 */ function notification_adapt($adapterName, \BracketSpace\Notification\Core\Notification $notification) { - _deprecated_function( __FUNCTION__, '[Next]', 'Notification::to()'); + _deprecated_function( __FUNCTION__, '9.0.0', 'Notification::to()'); if (class_exists($adapterName)) { $adapter = new $adapterName($notification); @@ -504,10 +504,10 @@ function notification_adapt($adapterName, \BracketSpace\Notification\Core\Notifi * @param mixed $data Input data needed by adapter. * @return \BracketSpace\Notification\Interfaces\Adaptable * @since 6.0.0 - * @deprecated [Next] + * @deprecated 9.0.0 */ function notification_adapt_from($adapterName, $data) { - _deprecated_function( __FUNCTION__, '[Next]', 'Notification::from()'); + _deprecated_function( __FUNCTION__, '9.0.0', 'Notification::from()'); $adapter = notification_adapt( $adapterName, @@ -523,10 +523,10 @@ function notification_adapt_from($adapterName, $data) { * @param \BracketSpace\Notification\Interfaces\Adaptable $adapter Adapter. * @return \BracketSpace\Notification\Interfaces\Adaptable * @since 6.0.0 - * @deprecated [Next] + * @deprecated 9.0.0 */ function notification_swap_adapter($newAdapterName, Interfaces\Adaptable $adapter) { - _deprecated_function( __FUNCTION__, '[Next]'); + _deprecated_function( __FUNCTION__, '9.0.0'); return notification_adapt( $newAdapterName, @@ -538,14 +538,14 @@ function notification_swap_adapter($newAdapterName, Interfaces\Adaptable $adapte * Logs the message in database * * @since 6.0.0 - * @deprecated [Next] + * @deprecated 9.0.0 * @param string $component Component nice name, like `Core` or `Any Plugin Name`. * @param string $type Log type, values: notification|error|warning. * @param string $message Log formatted message. * @return bool|\WP_Error */ function notification_log($component, $type, $message) { - _deprecated_function( __FUNCTION__, '[Next]', 'BracketSpace\\Notification\\Core\\Debugging::log()'); + _deprecated_function( __FUNCTION__, '9.0.0', 'BracketSpace\\Notification\\Core\\Debugging::log()'); return Debugging::log($component, $type, $message); } @@ -554,12 +554,12 @@ function notification_log($component, $type, $message) { * Adds Notification to Store * * @since 6.0.0 - * @deprecated [Next] + * @deprecated 9.0.0 * @param \BracketSpace\Notification\Core\Notification $notification Notification object. * @return void */ function notification_add(\BracketSpace\Notification\Core\Notification $notification) { - _deprecated_function( __FUNCTION__, '[Next]', 'BracketSpace\\Notification\\Register::notification()'); + _deprecated_function( __FUNCTION__, '9.0.0', 'BracketSpace\\Notification\\Register::notification()'); Register::notification($notification); } @@ -573,10 +573,10 @@ function notification_add(\BracketSpace\Notification\Core\Notification $notifica * @param array $data Notification static data. * @return array Converted data. * @since 6.0.0 - * @deprecated [Next] + * @deprecated 9.0.0 */ function notification_convert_data($data = []) { - _deprecated_function( __FUNCTION__, '[Next]', "Bracketspace\\Notification\\Core\\Notification::from('array', ...)"); + _deprecated_function( __FUNCTION__, '9.0.0', "Bracketspace\\Notification\\Core\\Notification::from('array', ...)"); $notification = Notification::from('array', $data); @@ -590,10 +590,10 @@ function notification_convert_data($data = []) { * @param int $priority Action priority. * @return void * @since 5.0.0 - * @deprecated [Next] + * @deprecated 9.0.0 */ function notification_register_settings($callback, $priority = 10) { - _deprecated_function( __FUNCTION__, '[Next]', 'Use the `notification/settings/register` action directly'); + _deprecated_function( __FUNCTION__, '9.0.0', 'Use the `notification/settings/register` action directly'); if (!is_callable($callback)) { trigger_error( @@ -614,10 +614,10 @@ function notification_register_settings($callback, $priority = 10) { * * @return mixed * @since 5.0.0 - * @deprecated [Next] + * @deprecated 9.0.0 */ function notification_get_settings() { - _deprecated_function( __FUNCTION__, '[Next]', "\Notification::settings()->getSettings()"); + _deprecated_function( __FUNCTION__, '9.0.0', "\Notification::settings()->getSettings()"); return \Notification::component(Settings::class)->getSettings(); } @@ -629,10 +629,10 @@ function notification_get_settings() { * @return mixed * @since 5.0.0 * @since 7.0.0 The `notifications` section has been changed to `carriers`. - * @deprecated [Next] + * @deprecated 9.0.0 */ function notification_get_setting($setting) { - _deprecated_function( __FUNCTION__, '[Next]', "\Notification::settings()->getSetting()"); + _deprecated_function( __FUNCTION__, '9.0.0', "\Notification::settings()->getSetting()"); return \Notification::component(Settings::class)->getSetting($setting); } @@ -640,13 +640,13 @@ function notification_get_setting($setting) { /** * Updates single setting value. * - * @deprecated [Next] + * @deprecated 9.0.0 * @param string $setting setting name in `a/b/c` format. * @param mixed $value setting value. * @return mixed */ function notification_update_setting($setting, $value) { - _deprecated_function( __FUNCTION__, '[Next]', "\Notification::settings()->updateSetting(setting, value)"); + _deprecated_function( __FUNCTION__, '9.0.0', "\Notification::settings()->updateSetting(setting, value)"); return \Notification::component(Settings::class)->updateSetting($setting, $value); } @@ -655,13 +655,13 @@ function notification_update_setting($setting, $value) { * Creates new Notification from array * * @since 6.0.0 - * @deprecated [Next] + * @deprecated 9.0.0 * @param NotificationUnconvertedData $data Notification data. * @return void */ function notification($data = []) { - _deprecated_function( __FUNCTION__, '[Next]', 'BracketSpace\\Notification\\Register::notificationFromArray()'); + _deprecated_function( __FUNCTION__, '9.0.0', 'BracketSpace\\Notification\\Register::notificationFromArray()'); Register::notificationFromArray($data); } diff --git a/compat/src-deprecated/namespaces.php b/compat/src-deprecated/namespaces.php index 5508e1fa..71cc6b11 100644 --- a/compat/src-deprecated/namespaces.php +++ b/compat/src-deprecated/namespaces.php @@ -7,7 +7,7 @@ spl_autoload_register(function ($class) { $deprecations = [ - '[Next]' => [ + '9.0.0' => [ 'BracketSpace\Notification\Defaults' => 'BracketSpace\Notification\Repository', 'BracketSpace\Notification\Abstracts\Carrier' => 'BracketSpace\Notification\Repository\Carrier\BaseCarrier', 'BracketSpace\Notification\Abstracts\Field' => 'BracketSpace\Notification\Repository\Field\BaseField', diff --git a/notification.php b/notification.php index 90608643..7076e0fc 100644 --- a/notification.php +++ b/notification.php @@ -106,7 +106,7 @@ public static function settings() { /** * Gets plugin settings instance * - * @since [Next] + * @since 9.0.0 * @throws \Exception When runtime wasn't invoked yet. * @return \BracketSpace\Notification\Dependencies\Micropackage\Filesystem\Filesystem */ diff --git a/readme.txt b/readme.txt index eeed2d4c..0388d05d 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: notification, bracketspace, Kubitomakita, tomaszadamowicz, insejn, Tags: notification, notify, alert, email, mail, webhook, API, developer, framework Requires at least: 4.9 Tested up to: 6.2 -Stable tag: 8.0.15 +Stable tag: 9.0.0 Requires PHP: 7.4 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -302,7 +302,7 @@ Yes! We're offering a [custom plugin development](https://bracketspace.com/custo == Changelog == -= [Next] = += 9.0.0 = **Compatibility Breaking Changes** @@ -393,10 +393,10 @@ Removed deprecated hooks: == Upgrade Notice == -= [Next] = += 9.0.0 = Minimum required PHP version is 7.4. Compatibility breaking changes. Please make sure to review the changelog before upgrading and adjust your customizations. -The premium plugins won't work with Notification [Next] unless updated. +The premium plugins won't work with Notification 9.0.0 unless updated. Webook and Webhook JSON Carriers are now deprecated and won't work unless you get an add-on. = 8.0.0 = diff --git a/src/Admin/ImportExport.php b/src/Admin/ImportExport.php index f3bf6585..5db49f6a 100644 --- a/src/Admin/ImportExport.php +++ b/src/Admin/ImportExport.php @@ -104,7 +104,7 @@ public function exportRequest() * * @since 6.0.0 * @since 8.0.2 Accepts the items argument, instead reading it from GET. - * @since [Next] Uses NotificationDatabaseService instead of get_posts(). + * @since 9.0.0 Uses NotificationDatabaseService instead of get_posts(). * @param array $items Items to export. * @return array * @throws \Exception When no items selected for export. diff --git a/src/Admin/PostType.php b/src/Admin/PostType.php index 1e7258c7..7188e280 100644 --- a/src/Admin/PostType.php +++ b/src/Admin/PostType.php @@ -217,7 +217,7 @@ public function bypassTrash($postId) * * @action after_delete_post 100 * - * @since [Next] + * @since 9.0.0 * @param int $postId Post ID. * @param \WP_Post $post WP Post object. * @return void @@ -249,7 +249,7 @@ public function deleteNotification($postId, $post) * * @action save_post_notification * - * @since [Next] We're saving the Notification to custom table instead of Post Type. Post is just the shell. + * @since 9.0.0 We're saving the Notification to custom table instead of Post Type. Post is just the shell. * @param int $postId Current post ID. * @param \WP_Post $post WP_Post object. * @param bool $update If existing notification is updated. @@ -381,7 +381,7 @@ public function ajaxChangeNotificationStatus() /** * Gets all Notifications from database. * - * @deprecated [Next] Use BracketSpace\Notification\Database\NotificationDatabaseService::getAll(); + * @deprecated 9.0.0 Use BracketSpace\Notification\Database\NotificationDatabaseService::getAll(); * @since 6.0.0 * @return array */ @@ -389,7 +389,7 @@ public static function getAllNotifications() { _deprecated_function( __METHOD__, - '[Next]', + '9.0.0', 'BracketSpace\Notification\Database\NotificationDatabaseService::getAll' ); diff --git a/src/Compat/WebhookCompat.php b/src/Compat/WebhookCompat.php index 4d0b3083..c4a1ef3a 100644 --- a/src/Compat/WebhookCompat.php +++ b/src/Compat/WebhookCompat.php @@ -17,7 +17,7 @@ /** * WebhookCompat class * - * @since [Next] + * @since 9.0.0 */ class WebhookCompat { diff --git a/src/Core/Debugging.php b/src/Core/Debugging.php index 53ca0375..9a2adb41 100644 --- a/src/Core/Debugging.php +++ b/src/Core/Debugging.php @@ -44,7 +44,7 @@ public function __construct() /** * Logs the message in database * - * @since [Next] + * @since 9.0.0 * @param string $component Component nice name, like `Core` or `Any Plugin Name`. * @param string $type Log type, values: notification|error|warning. * @param string $message Log formatted message. diff --git a/src/Core/Notification.php b/src/Core/Notification.php index a3a5dca9..e2528ea7 100644 --- a/src/Core/Notification.php +++ b/src/Core/Notification.php @@ -584,13 +584,13 @@ public function setSourcePostId($postId) * Dumps the object to array * * @since 6.0.0 - * @deprecated [Next] Use Converter instead, via $notification->to('array') method + * @deprecated 9.0.0 Use Converter instead, via $notification->to('array') method * @param bool $onlyEnabledCarriers If only enabled Carriers should be saved. * @return NotificationData|null */ public function toArray($onlyEnabledCarriers = false) { - _deprecated_function(__METHOD__, '[Next]', 'Notification::to'); + _deprecated_function(__METHOD__, '9.0.0', 'Notification::to'); $array = $this->to('array', ['onlyEnabledCarriers' => $onlyEnabledCarriers]); @@ -604,7 +604,7 @@ public function toArray($onlyEnabledCarriers = false) /** * Creates Notification from a specific representation * - * @since [Next] + * @since 9.0.0 * @throws \Exception When no Notification object comes back from the filter * @param string $type The type of representation, ie. array or json * @param string|array $data The notification representation @@ -630,7 +630,7 @@ public static function from(string $type, $data): Notification /** * Converts the notification to another type of representation. * - * @since [Next] + * @since 9.0.0 * @param string $type The type of representation, ie. array or json * @param array $config The additional configuration of the converter * @return mixed diff --git a/src/Core/Upgrade.php b/src/Core/Upgrade.php index 77a03aa8..d1b32a7d 100644 --- a/src/Core/Upgrade.php +++ b/src/Core/Upgrade.php @@ -350,7 +350,7 @@ public function upgradeToV2() * - 1. Moves the notifications to custom table. * - 2. Clears notifications cache. * - * @since [Next] + * @since 9.0.0 * @return void */ public function upgradeToV3() diff --git a/src/Database/NotificationDatabaseService.php b/src/Database/NotificationDatabaseService.php index aa95e6b0..3a0a63f8 100644 --- a/src/Database/NotificationDatabaseService.php +++ b/src/Database/NotificationDatabaseService.php @@ -19,7 +19,7 @@ /** * This class describes a notification database service. * - * @since [Next] + * @since 9.0.0 */ class NotificationDatabaseService { @@ -231,7 +231,7 @@ public static function upsert(Notification $notification) /** * These actions has been moved from Admin\PostType::save() */ - do_action_deprecated('notification/data/save/after', [$notification], '[Next]', 'notification/data/saved'); + do_action_deprecated('notification/data/save/after', [$notification], '9.0.0', 'notification/data/saved'); do_action('notification/data/saved', $notification); static::getCache($notification->getHash())->delete(); diff --git a/src/Integration/WordPressEmails.php b/src/Integration/WordPressEmails.php index aa1fce54..be2f1cb0 100644 --- a/src/Integration/WordPressEmails.php +++ b/src/Integration/WordPressEmails.php @@ -187,7 +187,7 @@ public function disableSendConfirmationOnAdminEmail() * * @filter send_site_admin_email_change_email * - * @since [Next] + * @since 9.0.0 * @return bool */ public function disableSendConfirmationOnAdminEmailChanged() diff --git a/src/Integration/WordPressIntegration.php b/src/Integration/WordPressIntegration.php index e1de86af..67f721fb 100644 --- a/src/Integration/WordPressIntegration.php +++ b/src/Integration/WordPressIntegration.php @@ -30,7 +30,7 @@ class WordPressIntegration * * @action notification/init 9999999 * - * @since [Next] + * @since 9.0.0 * @return void */ public function loadDatabaseNotifications() diff --git a/src/Interfaces/Convertable.php b/src/Interfaces/Convertable.php index 422214b9..971faa63 100644 --- a/src/Interfaces/Convertable.php +++ b/src/Interfaces/Convertable.php @@ -19,7 +19,7 @@ interface Convertable /** * Creates Notification from a specific representation * - * @since [Next] + * @since 9.0.0 * @param string|array $data The notification representation * @return Notification */ @@ -28,7 +28,7 @@ public function from($data): Notification; /** * Converts the notification to another type of representation * - * @since [Next] + * @since 9.0.0 * @param Notification $notification Notification instance * @param array $config The additional configuration of the converter * @return mixed diff --git a/src/Register.php b/src/Register.php index 424009ec..8242778f 100644 --- a/src/Register.php +++ b/src/Register.php @@ -17,7 +17,7 @@ class Register /** * Registers Notification * - * @since [Next] + * @since 9.0.0 * @param \BracketSpace\Notification\Core\Notification $notification Notification object. * @return \BracketSpace\Notification\Core\Notification */ @@ -37,7 +37,7 @@ public static function notification(Core\Notification $notification) * * Accepts both array with Trigger and Carriers objects or static values. * - * @since [Next] + * @since 9.0.0 * @param NotificationUnconvertedData $data Notification data. * @return \WP_Error|true */ @@ -55,7 +55,7 @@ public static function notificationFromArray($data = []) /** * Registers Notification if newer version is provided or doesn't exist at all * - * @since [Next] + * @since 9.0.0 * @param \BracketSpace\Notification\Core\Notification $notification Notification object. * @return \BracketSpace\Notification\Core\Notification */ diff --git a/src/Repository/Carrier/BaseCarrier.php b/src/Repository/Carrier/BaseCarrier.php index fb2696a2..1d7ae233 100644 --- a/src/Repository/Carrier/BaseCarrier.php +++ b/src/Repository/Carrier/BaseCarrier.php @@ -188,7 +188,7 @@ public function formFields() return; } - _deprecated_function(__METHOD__, '[Next]', 'Carrier::formFields'); + _deprecated_function(__METHOD__, '9.0.0', 'Carrier::formFields'); $this->form_fields(); } diff --git a/src/Repository/Converter/ArrayConverter.php b/src/Repository/Converter/ArrayConverter.php index 04a12c73..5a003fba 100644 --- a/src/Repository/Converter/ArrayConverter.php +++ b/src/Repository/Converter/ArrayConverter.php @@ -16,7 +16,7 @@ /** * Array Converter class * - * @since [Next] + * @since 9.0.0 */ class ArrayConverter implements Interfaces\Convertable { @@ -25,7 +25,7 @@ class ArrayConverter implements Interfaces\Convertable * * @filter notification/from/array * - * @since [Next] + * @since 9.0.0 * @param NotificationUnconvertedData $data The notification representation * @return Notification */ @@ -68,7 +68,7 @@ public function from($data): Notification * * @filter notification/to/array * - * @since [Next] + * @since 9.0.0 * @param Notification $notification Notification instance * @param array $config The additional configuration of the converter * @return NotificationAsArray diff --git a/src/Repository/Converter/JsonConverter.php b/src/Repository/Converter/JsonConverter.php index 84254462..92554683 100644 --- a/src/Repository/Converter/JsonConverter.php +++ b/src/Repository/Converter/JsonConverter.php @@ -15,7 +15,7 @@ /** * JSON Converter class * - * @since [Next] + * @since 9.0.0 */ class JsonConverter implements Convertable { @@ -24,7 +24,7 @@ class JsonConverter implements Convertable * * @filter notification/from/json * - * @since [Next] + * @since 9.0.0 * @param string $data The notification representation * @return Notification */ @@ -50,7 +50,7 @@ public function from($data): Notification * * @filter notification/to/json * - * @since [Next] + * @since 9.0.0 * @param Notification $notification Notification instance * @param array $config The additional configuration of the converter * @return mixed diff --git a/src/Repository/MergeTag/DateTime/Date.php b/src/Repository/MergeTag/DateTime/Date.php index 78849910..807581ef 100644 --- a/src/Repository/MergeTag/DateTime/Date.php +++ b/src/Repository/MergeTag/DateTime/Date.php @@ -26,7 +26,7 @@ class Date extends StringTag * Merge tag constructor * * @param array $params merge tag configuration params. - * @since [Next] The automatic property lookup searches for camelCase prop first. + * @since 9.0.0 The automatic property lookup searches for camelCase prop first. * @since 7.0.0 Expects the timestamp without an offset. * You can pass timezone argument as well, use GMT if timestamp is with offset. * @since 5.0.0 @@ -46,7 +46,7 @@ public function __construct($params = []) ); if (isset($args['timestamp']) && !is_callable($args['timestamp'])) { - _deprecated_argument(__METHOD__, '[Next]', '"timestamp" option must be callable.'); + _deprecated_argument(__METHOD__, '9.0.0', '"timestamp" option must be callable.'); } if (!isset($args['description'])) { @@ -63,7 +63,7 @@ public function __construct($params = []) $timestamp = call_user_func($args['timestamp'], $trigger); } elseif (isset($args['timestamp']) && !is_callable($args['timestamp'])) { /** - * @deprecated [Next] "timestamp" option must be callable. + * @deprecated 9.0.0 "timestamp" option must be callable. */ $timestamp = $args['timestamp']; } elseif (isset($trigger->{CaseHelper::toCamel($this->getSlug())})) { diff --git a/src/Repository/MergeTag/DateTime/DateTime.php b/src/Repository/MergeTag/DateTime/DateTime.php index 7812f337..a9069315 100644 --- a/src/Repository/MergeTag/DateTime/DateTime.php +++ b/src/Repository/MergeTag/DateTime/DateTime.php @@ -26,7 +26,7 @@ class DateTime extends StringTag * Merge tag constructor * * @param array $params merge tag configuration params. - * @since [Next] The automatic property lookup searches for camelCase prop first. + * @since 9.0.0 The automatic property lookup searches for camelCase prop first. * @since 7.0.0 Expects the timestamp without an offset. * You can pass timezone argument as well, use GMT if timestamp is with offset. * @since 5.0.0 @@ -47,7 +47,7 @@ public function __construct($params = []) ); if (isset($args['timestamp']) && !is_callable($args['timestamp'])) { - _deprecated_argument(__METHOD__, '[Next]', '"timestamp" option must be callable.'); + _deprecated_argument(__METHOD__, '9.0.0', '"timestamp" option must be callable.'); } if (!isset($args['description'])) { @@ -64,7 +64,7 @@ public function __construct($params = []) $timestamp = call_user_func($args['timestamp'], $trigger); } elseif (isset($args['timestamp']) && !is_callable($args['timestamp'])) { /** - * @deprecated [Next] "timestamp" option must be callable. + * @deprecated 9.0.0 "timestamp" option must be callable. */ $timestamp = $args['timestamp']; } elseif (isset($trigger->{CaseHelper::toCamel($this->getSlug())})) { diff --git a/src/Repository/MergeTag/DateTime/Time.php b/src/Repository/MergeTag/DateTime/Time.php index 0d0e3bab..d798608a 100644 --- a/src/Repository/MergeTag/DateTime/Time.php +++ b/src/Repository/MergeTag/DateTime/Time.php @@ -26,7 +26,7 @@ class Time extends StringTag * Merge tag constructor * * @param array $params merge tag configuration params. - * @since [Next] The automatic property lookup searches for camelCase prop first. + * @since 9.0.0 The automatic property lookup searches for camelCase prop first. * @since 7.0.0 Expects the timestamp without an offset. * You can pass timezone argument as well, use GMT if timestamp is with offset. * @since 5.0.0 @@ -46,7 +46,7 @@ public function __construct($params = []) ); if (isset($args['timestamp']) && !is_callable($args['timestamp'])) { - _deprecated_argument(__METHOD__, '[Next]', '"timestamp" option must be callable.'); + _deprecated_argument(__METHOD__, '9.0.0', '"timestamp" option must be callable.'); } if (!isset($args['group'])) { @@ -67,7 +67,7 @@ public function __construct($params = []) $timestamp = call_user_func($args['timestamp'], $trigger); } elseif (isset($args['timestamp']) && !is_callable($args['timestamp'])) { /** - * @deprecated [Next] "timestamp" option must be callable. + * @deprecated 9.0.0 "timestamp" option must be callable. */ $timestamp = $args['timestamp']; } elseif (isset($trigger->{CaseHelper::toCamel($this->getSlug())})) { diff --git a/src/Repository/Trigger/BaseTrigger.php b/src/Repository/Trigger/BaseTrigger.php index 29ac8841..5f2a5058 100644 --- a/src/Repository/Trigger/BaseTrigger.php +++ b/src/Repository/Trigger/BaseTrigger.php @@ -86,7 +86,7 @@ public function mergeTags() return; } - _deprecated_function(__METHOD__, '[Next]', 'Trigger::mergeTags'); + _deprecated_function(__METHOD__, '9.0.0', 'Trigger::mergeTags'); $this->merge_tags(); } diff --git a/src/Repository/Trigger/Post/PostTrigger.php b/src/Repository/Trigger/Post/PostTrigger.php index f05a115e..6af9a672 100644 --- a/src/Repository/Trigger/Post/PostTrigger.php +++ b/src/Repository/Trigger/Post/PostTrigger.php @@ -607,7 +607,7 @@ public function __get($property) wp_trigger_error( static::class, sprintf( - 'Property `%s` is deprecated since [Next], use `post` property instead.', + 'Property `%s` is deprecated since 9.0.0, use `post` property instead.', $property ) ); diff --git a/src/Runtime.php b/src/Runtime.php index 21e1dd9e..24870285 100644 --- a/src/Runtime.php +++ b/src/Runtime.php @@ -163,9 +163,9 @@ public function getFilesystem($deprecated = 'root') * * @throws \Exception When component is already registered. * @since 7.0.0 - * @since [Next] Only the component name is accepter + * @since 9.0.0 Only the component name is accepter * @param mixed $component Component. - * @param null $deprecated Deprecated since [Next]. + * @param null $deprecated Deprecated since 9.0.0. * @return $this */ public function addComponent($component, $deprecated = null) @@ -173,7 +173,7 @@ public function addComponent($component, $deprecated = null) if ($deprecated !== null) { _deprecated_argument( __METHOD__, - '[Next]', + '9.0.0', 'Method accepts only one argument - the object itself.' ); @@ -199,7 +199,7 @@ public function addComponent($component, $deprecated = null) * Gets runtime component * * @since 7.0.0 - * @since [Next] Components are referenced by FQCN. + * @since 9.0.0 Components are referenced by FQCN. * @param string $name Component name. * @return mixed Component or null */ @@ -212,7 +212,7 @@ public function component($name) _deprecated_argument( __METHOD__, - '[Next]', + '9.0.0', sprintf('You used deprecated `%s` component name, use `%s` instead', $name, $newName) ); diff --git a/src/Traits/Storage.php b/src/Traits/Storage.php index c5db1b47..d4ae95cd 100644 --- a/src/Traits/Storage.php +++ b/src/Traits/Storage.php @@ -42,7 +42,7 @@ public static function add($item) * Inserts an item at a specific index. * * @since 8.0.0 - * @since [Next] Has third `$replace` param + * @since 9.0.0 Has third `$replace` param * @param int|string $index Item index. * @param TItem $item Item to add. * @param bool $replace If should be replaced if exists, default: false. diff --git a/tests/UnitTestCase.php b/tests/UnitTestCase.php index cfe8f067..3583d199 100644 --- a/tests/UnitTestCase.php +++ b/tests/UnitTestCase.php @@ -12,7 +12,7 @@ class UnitTestCase extends \WP_UnitTestCase /** * Test set up. * - * @since [Next] + * @since 9.0.0 * @return void */ protected function setUp(): void @@ -24,7 +24,7 @@ protected function setUp(): void /** * Test tear down. * - * @since [Next] + * @since 9.0.0 * @return void */ protected function tearDown(): void