-
Notifications
You must be signed in to change notification settings - Fork 10.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apply Rector suggestions for PHP 8.1 #41482
Merged
Merged
Commits on Jan 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 368cb00 - Browse repository at this point
Copy the full SHA 368cb00View commit details -
Configuration menu - View commit details
-
Copy full SHA for ca8f8fe - Browse repository at this point
Copy the full SHA ca8f8feView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6aad3b9 - Browse repository at this point
Copy the full SHA 6aad3b9View commit details -
Rector issue: AddDefaultValueForUndefinedVariableRector. This time the early return is valid so there’s no need to move the $process_limit assignment to the top.
Configuration menu - View commit details
-
Copy full SHA for 1b49df6 - Browse repository at this point
Copy the full SHA 1b49df6View commit details -
$orders is used as an array lines below. Add `is_array` just in case the “paginate” param is used which would change $orders to an object.
Configuration menu - View commit details
-
Copy full SHA for 2b457c9 - Browse repository at this point
Copy the full SHA 2b457c9View commit details -
Simplifies variable check given that they are used as an array lines below.
Configuration menu - View commit details
-
Copy full SHA for ad08d0d - Browse repository at this point
Copy the full SHA ad08d0dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3cd4fd1 - Browse repository at this point
Copy the full SHA 3cd4fd1View commit details -
In the previous loop the $data variable is being built as an array of arrays. Then $value in this loop will allways be array.
Configuration menu - View commit details
-
Copy full SHA for 58ba462 - Browse repository at this point
Copy the full SHA 58ba462View commit details -
get_children’s method. of a WC_Product instance will always return an array.
Configuration menu - View commit details
-
Copy full SHA for 503882d - Browse repository at this point
Copy the full SHA 503882dView commit details -
Ask if varialbe is array since it only can be array or false.
Configuration menu - View commit details
-
Copy full SHA for 4b77a0c - Browse repository at this point
Copy the full SHA 4b77a0cView commit details -
WC_Blocks_Utils::get_blocks_from_page() will always return an array.
Configuration menu - View commit details
-
Copy full SHA for 5be20ca - Browse repository at this point
Copy the full SHA 5be20caView commit details -
There’s a check asking if $existing_meta_data[ $meta_data->key ] is array.
Configuration menu - View commit details
-
Copy full SHA for 95bf621 - Browse repository at this point
Copy the full SHA 95bf621View commit details -
Configuration menu - View commit details
-
Copy full SHA for d1a1dfa - Browse repository at this point
Copy the full SHA d1a1dfaView commit details -
WC_Product->get_visible_children() will always return an array.
Configuration menu - View commit details
-
Copy full SHA for bc77aed - Browse repository at this point
Copy the full SHA bc77aedView commit details -
WC_Product->get_children() will always return an array.
Configuration menu - View commit details
-
Copy full SHA for f2a809c - Browse repository at this point
Copy the full SHA f2a809cView commit details -
WC_Product->get_visible_children() will always return an array.
Configuration menu - View commit details
-
Copy full SHA for 4a86082 - Browse repository at this point
Copy the full SHA 4a86082View commit details -
WC_Order->get_items() will always return an array.
Configuration menu - View commit details
-
Copy full SHA for 5bc27d1 - Browse repository at this point
Copy the full SHA 5bc27d1View commit details -
The get_matching_rates private method will always return an array. Updated the @return declaration to be an array instead of boolean.
Configuration menu - View commit details
-
Copy full SHA for a7e1b08 - Browse repository at this point
Copy the full SHA a7e1b08View commit details -
Configuration menu - View commit details
-
Copy full SHA for 46e5d73 - Browse repository at this point
Copy the full SHA 46e5d73View commit details -
$this->get_children() will always return an array.
Configuration menu - View commit details
-
Copy full SHA for 2046906 - Browse repository at this point
Copy the full SHA 2046906View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f75443 - Browse repository at this point
Copy the full SHA 1f75443View commit details -
Configuration menu - View commit details
-
Copy full SHA for c6a2497 - Browse repository at this point
Copy the full SHA c6a2497View commit details -
Configuration menu - View commit details
-
Copy full SHA for 27eed10 - Browse repository at this point
Copy the full SHA 27eed10View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7620c9a - Browse repository at this point
Copy the full SHA 7620c9aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0274ebb - Browse repository at this point
Copy the full SHA 0274ebbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 48b5787 - Browse repository at this point
Copy the full SHA 48b5787View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a9f30e - Browse repository at this point
Copy the full SHA 2a9f30eView commit details -
Configuration menu - View commit details
-
Copy full SHA for f052f83 - Browse repository at this point
Copy the full SHA f052f83View commit details -
Configuration menu - View commit details
-
Copy full SHA for 751334a - Browse repository at this point
Copy the full SHA 751334aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7342f53 - Browse repository at this point
Copy the full SHA 7342f53View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ac605d - Browse repository at this point
Copy the full SHA 9ac605dView commit details -
Configuration menu - View commit details
-
Copy full SHA for cf7655b - Browse repository at this point
Copy the full SHA cf7655bView commit details -
Configuration menu - View commit details
-
Copy full SHA for ad4e25c - Browse repository at this point
Copy the full SHA ad4e25cView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.