Releases: thephpleague/csv
Releases · thephpleague/csv
version 9.8.0
Added
- Added PHP7.4 typed properties where applicable
TabularDataReader::fetchColumnByName
to replaceTabularDataReader::fetchColumn
TabularDataReader::fetchColumnByOffset
to replaceTabularDataReader::fetchColumn
Deprecated
TabularDataReader::fetchColumn
useTabularDataReader::fetchColumnByOffset
orTabularDataReader::fetchColumnByName
instead
Fixed
AbstractCsv
constructor is marked final via docblock.
The method should never be extended or changed in child classes to avoid unexpected behaviour
Removed
- PHP7.3 support
- Remove internal
EmptyEscapeParser
Polyfill used inReader
class - Remove PHP7.4 polyfill features in
Writer
class
version 9.7.4
Added
- None
Deprecated
- None
Fixed
- Bug fix
EscapeFormula
to follow OWASP latest recommendation PR #452
thanks to @robertfausk and @Lehmub
Removed
- None
version 9.7.3
Added
- None
Deprecated
- None
Fixed
- Update PHPStan requirement for development
- Improve Documentation generation thanks to pdelre
- PHP8.1 compliance: using
ReturnTypeWillChange
to avoid emitting a unnecessary deprecation notice. thanks to cedric-anne
Removed
- None
version 9.7.2
Added
- None
Deprecated
- None
Fixed
- Update dependencies requirement for development
- PHP8.1 compliance: replace
FILTER_SANITIZE_STRING
byFILTER_UNSAFE_RAW
- PHP8.1 compliance: remove duplicated public properties declaration
- PHP8.1 compliance: add support for fputcsv
$eol
argument
Removed
- None
version 9.7.1
version 9.7.0
Added
League\Csv\SyntaxError::duplicateColumnNames
to expose column name duplicates during header usageLeague\Csv\UnableToProcessCsv
as the new Exception Marker InterfaceLeague\Csv\UnavailableStream
as the new ExceptionLeague\Csv\Info::getDelimiterStats
to replace the namespace functiondelimiter_detect
League\Csv\Info::fetchBOMSequence
to replace the namespace functionbom_match
League\Csv\AbstractCsv::toString
to replaceLeague\Csv\AbstractCsv::getContent
andLeague\Csv\AbstractCsv::__toString
League\Csv\XMLConverter::create
to replaceLeague\Csv\XMLConverter::__construct
League\Csv\HTMLConverter::create
to replaceLeague\Csv\HTMLConverter::__construct
League\Csv\AbstractCsv::supportsStreamFilterOnRead
andLeague\Csv\AbstractCsv::supportsStreamFilterOnWrite
to replaceLeague\Csv\AbstractCsv::supportsStreamFilter
andLeague\Csv\AbstractCsv::getStreamFilterMode
Deprecated
League\Csv\delimiter_detect
useLeague\Csv\Info::getDelimiterStats
League\Csv\bom_match
useLeague\Csv\Info::fetchBOMSequence
League\Csv\AbstractCsv::getContent
useLeague\Csv\AbstractCsv::toString
League\Csv\AbstractCsv::getStreamFilterMode
useLeague\Csv\AbstractCsv::supportsStreamFilterOnRead
orLeague\Csv\AbstractCsv::supportsStreamFilterOnWrite
League\Csv\AbstractCsv::supportsStreamFilter
useLeague\Csv\AbstractCsv::supportsStreamFilterOnRead
orLeague\Csv\AbstractCsv::supportsStreamFilterOnWrite
- Calling exceptions constructor, use named constructors instead.
League\Csv\XMLConverter::__construct
useLeague\Csv\XMLConverter::create
League\Csv\HTMLConverter::__construct
useLeague\Csv\HTMLConverter::create
Fixed
- Move tests into the
src
directory - Fixed encoder method resolver implementation
- all classes marked as
@internal
are now final League\Csv\AbstractCsv::STREAM_FILTER_MODE
constant replacesLeague\Csv\AbstractCsv::$stream_filter_mode
Removed
- Support for PHP7.2
League\Csv\AbstractCsv::$stream_filter_mode
version 9.6.2
version 9.6.1
version 9.6.0
Added
- More return types and type parameters as supported in PHP7.2+
League\Csv\Statement::create
named constructor to ease constraint builder instantiationLeague\Csv\Statement
can now also processLeague\Csv\ResultSet
instances.League\Csv\TabularDataReader
interface to represent how to read tabular dataLeague\Csv\ResultSet::getRecords
has an optional$header
second argument to make the method works likeLeague\Csv\Reader::getRecords
League\Csv\ResultSet::createFromTabularDataReader
create a new instance fromLeague\Csv\TabularDataReader
implementing class.
Deprecated
- Nothing
Fixed
League\Csv\Reader
no longer uses__call
to implementfetchOne
,fetchPairs
andfetchColumn
methods.
Removed
- Internal polyfill for
is_iterable
- Internal polyfill for
is_nullable_int
- Support for PHP7.0 and PHP7.1
version 9.5.0
Added
- Improve package exception throwing by adding new exceptions classes that extends
theLeague\Csv\Exception
exception marker class #360, #361
feature proposed and developed by Darren MillerLeague\Csv\UnavailableFeature
League\Csv\InvalidArgument
League\Csv\SyntaxError
Deprecated
- Nothing
Fixed
- bug fix
bom_match
function see issue #363 resolved based on PR from Jerry Martinez - bug fix
delemiter_detect
function see issue #366
Removed
- Nothing