diff --git a/changelog.txt b/changelog.txt index c13bbb3f1c..3334db44d0 100644 --- a/changelog.txt +++ b/changelog.txt @@ -9,7 +9,7 @@ * Fix: Global custom CSS would incorrectly get added to the formidableforms.css more than once on some sites with multiple styles. * Fix: The style-specific custom CSS setting would incorrectly get output in the formidableforms.css file as CSS variable data. * Fix: The htaccess file included in this plugin is now automatically deleted when migrating to a new plugin version if a request to load CSS is blocked, fixing a conflict on some servers that are not configured to allow overwriting file permissions. -* Fix: A PHP warning would get logged when checking data for a rank field as spam. +* Fix: A PHP warning would get logged when checking data for a ranking field as spam. * Fix: Add-on category counts were not always correct. * Breaking: Many modern PHP functions are now being used including str_contains, str_starts_with, str_ends_with, array_key_last, and array_key_first. If you are using both a WordPress version older than 5.9, and a PHP version lower than 8.0, this will introduce fatal errors. Note that the minimum required WordPress version is already set to 6.3. * Breaking: The deprecated functions FrmFieldCaptcha::captcha_size, FrmFormsHelper::should_use_pro_for_ajax_submit, FrmFormsController::add_form_style_tab_options, and FrmFieldType::get_select_atributes have been removed. diff --git a/readme.txt b/readme.txt index 39aa602ebe..7d38de0b4e 100644 --- a/readme.txt +++ b/readme.txt @@ -382,7 +382,7 @@ See all [Formidable Zapier Integrations](https://zapier.com/apps/formidable/inte * Fix: Global custom CSS would incorrectly get added to the formidableforms.css more than once on some sites with multiple styles. * Fix: The style-specific custom CSS setting would incorrectly get output in the formidableforms.css file as CSS variable data. * Fix: The htaccess file included in this plugin is now automatically deleted when migrating to a new plugin version if a request to load CSS is blocked, fixing a conflict on some servers that are not configured to allow overwriting file permissions. -* Fix: A PHP warning would get logged when checking data for a rank field as spam. +* Fix: A PHP warning would get logged when checking data for a ranking field as spam. * Fix: Add-on category counts were not always correct. * Breaking: Many modern PHP functions are now being used including str_contains, str_starts_with, str_ends_with, array_key_last, and array_key_first. If you are using both a WordPress version older than 5.9, and a PHP version lower than 8.0, this will introduce fatal errors. Note that the minimum required WordPress version is already set to 6.3. * Breaking: The deprecated functions FrmFieldCaptcha::captcha_size, FrmFormsHelper::should_use_pro_for_ajax_submit, FrmFormsController::add_form_style_tab_options, and FrmFieldType::get_select_atributes have been removed. diff --git a/rector.php b/rector.php index c5f964dd69..38b8dcb6ad 100644 --- a/rector.php +++ b/rector.php @@ -47,6 +47,8 @@ use Rector\DeadCode\Rector\FunctionLike\RemoveDeadReturnRector; use Rector\DeadCode\Rector\If_\RemoveAlwaysTrueIfConditionRector; use Rector\DeadCode\Rector\StaticCall\RemoveParentCallWithoutParentRector; +use Rector\DeadCode\Rector\ClassMethod\RemoveVoidDocblockFromMagicMethodRector; +use Rector\DeadCode\Rector\Node\RemoveNonExistingVarAnnotationRector; // EarlyReturn use Rector\EarlyReturn\Rector\If_\ChangeOrIfContinueToMultiContinueRector; @@ -62,6 +64,7 @@ use Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector; // TypeDeclarationDocblocks +use Rector\TypeDeclarationDocblocks\Rector\ClassMethod\AddReturnDocblockForDimFetchArrayFromAssignsRector; use Rector\TypeDeclarationDocblocks\Rector\ClassMethod\AddParamArrayDocblockFromAssignsParamToParamReferenceRector; use Rector\TypeDeclarationDocblocks\Rector\ClassMethod\AddParamArrayDocblockFromDimFetchAccessRector; use Rector\TypeDeclarationDocblocks\Rector\ClassMethod\DocblockReturnArrayFromDirectArrayInstanceRector; @@ -183,6 +186,8 @@ RemoveUnusedForeachKeyRector::class, RemoveUnusedPrivateMethodParameterRector::class, RemoveUnusedPrivateMethodRector::class, + RemoveVoidDocblockFromMagicMethodRector::class, + RemoveNonExistingVarAnnotationRector::class, // We never want to remove a valid param tag. Leave this exception. RemoveUselessParamTagRector::class, RemoveUselessReturnTagRector::class, @@ -208,5 +213,6 @@ AddParamArrayDocblockFromAssignsParamToParamReferenceRector::class, AddParamArrayDocblockFromDimFetchAccessRector::class, DocblockReturnArrayFromDirectArrayInstanceRector::class, + AddReturnDocblockForDimFetchArrayFromAssignsRector::class, ) );