Framework Documentation - Filesystem Package
Updating from v3 to v4
The following changes were made to the Filesystem package between v3 and v4.
Minimum supported PHP version raised
All Framework packages now require PHP 8.3 or newer.
StringController::_getArray() was removed
The deprecated method StringController::_getArray() was removed. Use StringController::getArray() instead.
Docblock review with subsequent fixes to parameter types
During a review of the docblocks, several types for parameters were corrected. While most changes simply allowed parameters to be nullable, the following fixes change the basic type of the parameter:
Patcher::findHunk()andPatcher::applyHunk()got the parameters$srcLine,$srcSize,$dstLineand$dstSizechanged from typestringtointeger. These methods already expected integer values, but now the docblock also correctly states that.Stream::$contextnow correctly states that it expects aresourceand not astringStream::getFileHandle()now correctly states that it returns a (nullable)resourceinstead of a (non-existent)Fileobject.Stream\StringWrapper::$lennow correctly states that it is anintegerand not astring.