Task #84933
closedstatic variable in FileInfo
100%
Description
there is a static variable hidden in FileInfo.php, which introduces issues for unittests. It can easily be replaced by a class variable.
Updated by Gerrit Code Review over 6 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56867
Updated by Anja Leichsenring over 6 years ago
- Related to Task #84934: Add UnitTests for ImageInfo added
Updated by Gerrit Code Review over 6 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56867
Updated by Tymoteusz Motylewski over 6 years ago
What issues?
Any idea why was it introduced as static variable in the first place?
I just want to avoid reintroducing some other issues with it.
Updated by Anja Leichsenring over 6 years ago
I had started with duplicating one test, that I wanted to adjust to another test case. The instance of GraphicalFunctions got in the way, because the test was not able to reset the mock.
I am not informed about the reason for putting a static variable there, it was introduced with #66268.
After conferring with Susi we decided it is bad design and agreed to replace it with a local class variable.
Updated by Anja Leichsenring over 6 years ago
- Related to Bug #66268: ImageInfo::getImageSizes() doesn't recognize all supported images formats added
Updated by Gerrit Code Review over 6 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56867
Updated by Gerrit Code Review over 6 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56867
Updated by Gerrit Code Review over 6 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56867
Updated by Gerrit Code Review over 6 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56867
Updated by Gerrit Code Review over 6 years ago
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56899
Updated by Anonymous over 6 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 6907f9a14604c3f6b5e7887eb070f74093e5a8e4.