-
-
Notifications
You must be signed in to change notification settings - Fork 161
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: thecodingmachine/safe
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.0.0
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: thecodingmachine/safe
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.0.1
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 13 commits
- 252 files changed
- 3 contributors
Commits on Feb 11, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 019edb0 - Browse repository at this point
Copy the full SHA 019edb0View commit details
Commits on Feb 17, 2025
-
Don't export `.devcontainer`, it's not needed for composer based installation
Configuration menu - View commit details
-
Copy full SHA for bab89f5 - Browse repository at this point
Copy the full SHA bab89f5View commit details -
[generator] better error handling
- reset docs to master before building DTD entities from them - use symfony Finder to remove all generated files, instead of glob to remove some of them - less spammy log output (unless --verbose is passed) - more detailed error messages
Configuration menu - View commit details
-
Copy full SHA for 3043e7b - Browse repository at this point
Copy the full SHA 3043e7bView commit details -
[generator] remove unused function
I'm planning on refactoring this code, let's get a trivial change out of the way first
Configuration menu - View commit details
-
Copy full SHA for 6b5efbb - Browse repository at this point
Copy the full SHA 6b5efbbView commit details -
Make _all_ return types alphabetical
Currently we're treating `null` and `false` as special cases, adding and removing them at various points in the process; this results in the return type list being `sorted(types-except-null) + null`. I want to remove the special-case magic, which will have the side effect of changing the return type to `sorted(types)`. I'm pulling that out into a separate PR because it makes the future PR easier to understand, and I also think it's valid to do this by itself
Configuration menu - View commit details
-
Copy full SHA for 03e6e19 - Browse repository at this point
Copy the full SHA 03e6e19View commit details -
More thorough nullability detection
Before: - When scanning for unsafe functions, check phpdoc type and phpstan type - When writing wrappers, _occasionally_ check if default value is `null` and infer nullability at the last minute After: - When scanning for unsafe functions, check phpdoc type, phpstan type, and default value
Configuration menu - View commit details
-
Copy full SHA for c87a46b - Browse repository at this point
Copy the full SHA c87a46bView commit details -
[generator] remove some redundant edge-cases
Special-cases to handle 7.X-era bugs are no longer needed Evidence that these cases are redundant: removing them doesn't affect the generated code
Configuration menu - View commit details
-
Copy full SHA for 78b5bff - Browse repository at this point
Copy the full SHA 78b5bffView commit details -
Hide a couple of parameters from stack traces
When something goes wrong, the stack trace contains ~10,000 lines of spam, often repeated several times over, which makes it hard to find the actual error
Configuration menu - View commit details
-
Copy full SHA for 1fb13c3 - Browse repository at this point
Copy the full SHA 1fb13c3View commit details -
[generator] defer nullable/falsable handling
Rather than "always strip false/null from return types, and then add them back when the function is non-nullsy / non-falsy", we can reduce complexity by "leave return types alone, strip them only when needed" This results in no chanes to generated files, but makes future development simpler
Configuration menu - View commit details
-
Copy full SHA for 288a30a - Browse repository at this point
Copy the full SHA 288a30aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f1338b - Browse repository at this point
Copy the full SHA 5f1338bView commit details -
Generate full functions even for pass-through wrappers, fixes #621
The minimalist pass-through stubs we used originally would sometimes behave differently and not actually pass things through as intended D:
Configuration menu - View commit details
-
Copy full SHA for 5c2ce65 - Browse repository at this point
Copy the full SHA 5c2ce65View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5bdf054 - Browse repository at this point
Copy the full SHA 5bdf054View commit details
Commits on Feb 18, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 37123c3 - Browse repository at this point
Copy the full SHA 37123c3View commit details
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.