-
Notifications
You must be signed in to change notification settings - Fork 358
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
Proposal: automatically add strict types #7542
Open
vcanales
wants to merge
9
commits into
trunk
Choose a base branch
from
automatically-add-strict-types
base: trunk
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Commits on Dec 12, 2023
-
Proposal: automatically add strict types
This PR is an experiment that aims to check if it would be practical to automatically add strict types to all PHP files that are missing them. Initially, it will add them to _all_ PHP files, but con subsequen runs, it'll only affect new files. The strict types declaration has become a requirement on WordPress.com in order to commit new PHP files to the codebase, and solving this upstream (eg. on Create Block Theme) might not be the best, since prescribing strict types to its broad userbase could prove problematic.
Vicente Canales committedDec 12, 2023 Configuration menu - View commit details
-
Copy full SHA for e871433 - Browse repository at this point
Copy the full SHA e871433View commit details -
Vicente Canales committed
Dec 12, 2023 Configuration menu - View commit details
-
Copy full SHA for 4e19957 - Browse repository at this point
Copy the full SHA 4e19957View commit details -
Add a comment to avoid PR spam while in dev
Vicente Canales committedDec 12, 2023 Configuration menu - View commit details
-
Copy full SHA for 51ac833 - Browse repository at this point
Copy the full SHA 51ac833View commit details -
Vicente Canales committed
Dec 12, 2023 Configuration menu - View commit details
-
Copy full SHA for 4a331e9 - Browse repository at this point
Copy the full SHA 4a331e9View commit details -
Vicente Canales committed
Dec 12, 2023 Configuration menu - View commit details
-
Copy full SHA for 4642115 - Browse repository at this point
Copy the full SHA 4642115View commit details -
Vicente Canales committed
Dec 12, 2023 Configuration menu - View commit details
-
Copy full SHA for 39ad668 - Browse repository at this point
Copy the full SHA 39ad668View commit details -
try to handle grep exit gracefully
Vicente Canales committedDec 12, 2023 Configuration menu - View commit details
-
Copy full SHA for 237f294 - Browse repository at this point
Copy the full SHA 237f294View commit details -
Vicente Canales committed
Dec 12, 2023 Configuration menu - View commit details
-
Copy full SHA for f9a325d - Browse repository at this point
Copy the full SHA f9a325dView commit details -
refactor how the declaration is added to the file
Vicente Canales committedDec 12, 2023 Configuration menu - View commit details
-
Copy full SHA for efc56c6 - Browse repository at this point
Copy the full SHA efc56c6View 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.