3.3.1 - 2021-09-11
- Fix
composer require
version inREADME.md
in GitHub Actions workflowRelease
3.3.0 - 2021-09-11
- Add
AbstractTypedArray::reset()
- Add
AbstractTypedArray::changeKeyCase()
- CI moved from CircleCI to GitHub Actions
- Add tools in
bin/ci
:composer-validate
,phpunit-coverage
,shellcheck
andunused-scanner
- Rework
bin/ci
binaries - Add
bin/release
binaries - Add GitHub Actions workflow
Release
3.2.0 - 2021-05-13
- Add
ReadOnlyInterface
- Add
AbstractTypedArray::setReadOnly()
andAbstractTypedArray::isReadOnly()
3.1.1 - 2021-05-10
- Fix
.gitattributes
3.1.0 - 2021-05-10
- Allow PHP
^8.0
(it was already compatible) - [BC Break] Removed
steevanb\PhpTypedArray\ScalarArray\BoolArray
: do not work and will never work due to\Iterator
3.0.1 - 2021-02-18
- Fix
ObjectArrayDenormalizer::createObjectArray()
- Fix Symfony bridge tests
3.0.0 - 2021-02-18
- Add tests for symfony/serializer
4.4
,5.0
,5.1
and5.2
- [BC break] Removed
steevanb\PhpTypedArray\Bridge\Symfony\Normalizer\ObjectArray\AbstractObjectArrayDenormalizer
- [BC break] Removed
steevanb\PhpTypedArray\Bridge\Symfony\Normalizer\ObjectArray\ByteStringArrayDenormalizer
- [BC break] Removed
steevanb\PhpTypedArray\Bridge\Symfony\Normalizer\ObjectArray\CodePointStringArrayDenormalizer
- [BC break] Removed
steevanb\PhpTypedArray\Bridge\Symfony\Normalizer\ObjectArray\UnicodeStringArrayDenormalizer
- Moved
steevanb\PhpTypedArray\Bridge\Symfony\Normalizer\ObjectArray\ObjectArrayDenormalizer
tosteevanb\PhpTypedArray\Bridge\Symfony\Normalizer\ObjectArrayDenormalizer
- [BC break] Removed
steevanb\PhpTypedArray\Bridge\Symfony\Normalizer\ScalarArray\AbstractScalarArrayDenormalizer
- [BC break] Removed
steevanb\PhpTypedArray\Bridge\Symfony\Normalizer\ScalarArray\BoolArrayDenormalizer
- [BC break] Removed
steevanb\PhpTypedArray\Bridge\Symfony\Normalizer\ScalarArray\FloatArrayDenormalizer
- [BC break] Removed
steevanb\PhpTypedArray\Bridge\Symfony\Normalizer\ScalarArray\IntArrayDenormalizer
- [BC break] Removed
steevanb\PhpTypedArray\Bridge\Symfony\Normalizer\ScalarArray\ScalarArrayDenormalizer
- [BC break] Removed
steevanb\PhpTypedArray\Bridge\Symfony\Normalizer\ScalarArray\StringArrayDenormalizer
- Add
steevanb\PhpTypedArray\Bridge\Symfony\Normalizer\ScalarArrayDenormalizer
to replacesteevanb\PhpTypedArray\Bridge\Symfony\Normalizer\ScalarArray\*Denormalizer
- Create Docker image
steevanb/php-typed-array-ci:1.0.0
who contains symfony/serializer versions and phpstan
2.6.0 - 2021-02-03
- Add
ObjectArrayDenormalizer
to denormalize all instances ofObjectArray
- Deprecate
ByteStringArrayDenormalizer
,CodePointStringArrayDenormalizer
andUnicodeStringArrayDenormalizer
(replaced byObjectArrayDenormalizer
) - Launch unit tests with PHP 7.1, 7.2, 7.3 and 7.4 (only 7.4 before)
- Fix
AbstractTypedArray
return types for PHP 7.1, 7.2 and 7.3
2.5.0 - 2020-12-30
- Add
TypedArrayInterface
and use it inAbstractTypedArray
- Add
DisallowTypedArrayRule
for phpstan
2.4.0 - 2020-12-03
- Add Symdony bridge
- Add Denormalizer for symfony/serializer component
2.3.0 - 2020-11-10
- Add
steevanb\PhpTypedArray\ScalarArray\BoolArray
- Add
steevanb\PhpTypedArray\ScalarArray\FloatArray
- Add
steevanb\PhpTypedArray\ScalarArray\ScalarArray
- Add some unit tests
2.2.0 - 2020-10-29
- Add merge() function to all but ObjectArray
- Update CI
2.1.2 - 2019-10-11
- Documentation
2.1.1 - 2019-10-11
- Documentation
2.1.0 - 2019-10-11
- [BaBeuloula] Add
steevanb\PhpTypedArray\ObjectArray\ByteStringArray
- [BaBeuloula] Add
steevanb\PhpTypedArray\ObjectArray\CodePointStringArray
- [BaBeuloula] Add
steevanb\PhpTypedArray\ObjectArray\UnicodeStringArray
- Add composerRequireChecker
- Add phpcf
- Update phpcs to 2.0.10
- Add phpstan
2.0.1 - 2019-05-10
- Add
/** @return $this */
when a method return self for PHPStorm autocompletion.
2.0.0 - 2019-04-27
- Moved
steevanb\PhpTypedArray\IntArray
,steevanb\PhpTypedArray\IntNullableArray
,steevanb\PhpTypedArray\StringArray
andsteevanb\PhpTypedArray\StringNullableArray
intosteevanb\PhpTypedArray\ScalarArray
namespace. - Moved
steevanb\PhpTypedArray\ObjectArray
intosteevanb\PhpTypedArray\ObjectArray
namespace. - Moved
steevanb\PhpTypedArray\NonUniqueValueException
intosteevanb\PhpTypedArray\Exception
namespace. steevanb\PhpTypedArray\Exception\NonUniqueValueException
extendssteevanb\PhpTypedArray\Exception\PhpTypedArrayException
instead of\Exception
.steevanb\PhpTypedArray\AbstractTypedArray::castValueToString
renamed tocastValueToString
.- Removed
steevanb\PhpTypedArray\IntNullableArray
andsteevanb\PhpTypedArray\StringNullableArray
, usesetNullValueMode()
instead. - Replaced
AbstractTypedArray::setUniqueValues()
,isUniqueValues()
,setExceptionOnNonUniqueValue()
andisExceptionOnNonUniqueValue()
bysetValueAlreadyExistMode()
. - Renamed
AbstractTypedArray::asArray()
totoArray()
. - All throwned exceptions are instance of
steevanb\PhpTypedArray\PhpTypedArrayException
instead of\Exception
. - Create
steevanb\PhpTypedArray\InvalidTypeException
throwned instead of\Exception
when trying to add a value into a AbstractTypedArray. - Renamed
steevanb\PhpTypedArray\NonUniqueValueException
tosteevanb\PhpTypedArray\ValueAlreadyExistException
. - Removed
steevanb\PhpTypedArray\AbstractTypedArray::merge()
, too much differences with PHParray_merge()
function and it could be called directly:array_merge($typedArray1->toArray(), $typedArray2->toArray())
.
1.1.0 - 2018-08-05
- Add
AbstractTypedArray::merge()
. - Add
AbstractTypedArray::setUniqueValues()
andAbstractTypedArray::isUniqueValues()
. - Add
AbstractTypedArray::setExceptionOnNonUniqueValue()
andAbstractTypedArray::isExceptionOnNonUniqueValue()
. - Add
AbstractTypedArray::__construct()
$uniqueValues
and$exceptionOnNonUniqueValue
parameters.
1.0.1 - 2018-08-05
- Change array type hint to iterable in
AbstractTypedArray::__construct()
.
- Create
\IntArray
,\IntNullableArray
,\StringArray
,\StringNullableArray
and\ObjectArray
.