zendframework / zend-diactoros

PSR-7 HTTP Message implementation
BSD 3-Clause "New" or "Revised" License
1.55k stars 152 forks source link

Reverts extension of SplFileInfo #379

Closed weierophinney closed 4 years ago

weierophinney commented 4 years ago

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.