Repository navigation
Conversation
Several 5.x changes add entries to docs/v4-to-v5-update.md; creating the file once keeps them from conflicting over its creation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The package requires PHP 8.3 but still declared its API in docblocks, and count() carried #[\ReturnTypeWillChange]. Parameters, return values and properties are now typed natively. set() keeps an untyped return value because Cookie::set() returns whether the cookie was sent, and the $filter argument of get() stays untyped until getArray() no longer passes input values as filter names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Uploaded files are read-only. set() silently did nothing and the inherited def() wrote into the data; both now throw a LogicException so that callers notice instead of believing the value was stored. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary of Changes
Uploaded files are read-only, but
Files::set()silently does nothing (so callers believe the value was stored), and the inheriteddef()writes into the data. This is the 5.0 step:set()anddef()throw aLogicException.Depends on #66 (native types;
Files::def()uses the typedInput::def()signature) and #65 (update guide); this branch contains their commits until they are merged.Testing Instructions
FilesTest::testSet()now expects the exception, and the newtestDef()checks thatdef()throws and does not write. Both fail before the change and pass after it.Documentation Changes Required
docs/overview.md("Uploaded files"):set()anddef()throw.docs/v4-to-v5-update.md: new section.Depends on #66
🤖 Generated with Claude Code