Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Conversation

weierophinney
Copy link
Member

Post-release of 2.2.0, users discovered problems with UploadedFile extending SplFileInfo, particularly when a stream path is used to create the instance. Additionally, there are some differences with how UploadedFileInterface and SplFileInfo each define the return type for getSize(); the former allows nullification, while the latter does not, but allows raising an exception (something explicitly disallowed in PSR-7).

This patch reverts the code and documentation changes associated with the patch.

Post-release, users discovered problems with `UploadedFile` extending
`SplFileInfo`, particularly when a stream path is used to create the
instance. Additionally, there are some differences with how
`UploadedFileInterface` and `SplFileInfo` each define the return type
for `getSize()`; the former allows nullification, while the latter does
not, but allows raising an exception (something explicitly
disallowed in PSR-7).

This patch reverts the code and documentation changes associated with
the patch.
Copy link
Member

@michalbundyra michalbundyra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

weierophinney added a commit that referenced this pull request Nov 13, 2019
@weierophinney weierophinney merged commit 4d9905e into zendframework:master Nov 13, 2019
weierophinney added a commit that referenced this pull request Nov 13, 2019
…nto develop

Forward port #379

Conflicts:
	CHANGELOG.md
@weierophinney weierophinney deleted the feature/revert-uploadedfile-extension-of-splfileinfo branch November 13, 2019 19:18
@michalbundyra michalbundyra added this to the 2.2.1 milestone Nov 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants