Closed sapayth closed 3 months ago
The recent updates primarily focus on ensuring the correct functionality of the #[AllowDynamicProperties]
attribute across various files by adding fully-qualified import statements for AllowDynamicProperties
. Additionally, a minor change in string construction within the wpuf_payment_success_page
function was made to use concatenation instead of interpolation.
Files/Paths | Change Summary |
---|---|
Lib/invisible_recaptcha.php |
Added use \AllowDynamicProperties; for fully-qualified import. |
admin/class-admin-settings.php |
Added use \AllowDynamicProperties; for fully-qualified import. |
includes/Admin.php |
Added use \AllowDynamicProperties; in WeDevs\Wpuf namespace. |
includes/.../Admin_Form.php |
Added use \AllowDynamicProperties; in WeDevs\Wpuf\Admin\Forms namespace. |
includes/.../Form.php |
Added fully-qualified AllowDynamicProperties import in WeDevs\Wpuf\Admin\Forms namespace. |
includes/.../Pro_Form_Preview_EDD.php |
Added use \AllowDynamicProperties; in WeDevs\Wpuf\Admin\Forms\Post\Templates namespace. |
includes/.../Frontend_Form_Ajax.php |
Added use \AllowDynamicProperties; in WeDevs\Wpuf\Ajax namespace. |
includes/.../Form_Field_Post_Taxonomy.php |
Added fully-qualified import for AllowDynamicProperties . |
includes/Frontend.php |
Added use \AllowDynamicProperties; in WeDevs\Wpuf namespace. |
wpuf.php |
Added fully-qualified import for AllowDynamicProperties . |
wpuf-functions.php |
Changed string interpolation to concatenation for $success_query in wpuf_payment_success_page function. |
🐇✨ In code we trust, with imports just right, Ensuring our attributes shine so bright. With dots for strings and namespaces clear, Our functions run smooth, no bugs to fear. Hopping through files, making things neat, A rabbit's touch makes the code complete! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
The creation of dynamic properties is deprecated from PHP 8.x.x. fixed in this PR
Summary by CodeRabbit
Bug Fixes
#[AllowDynamicProperties]
attribute works correctly across various components of the application.Code Quality
wpuf_payment_success_page
function.