php-basics/.phpdoc/guide/changelog.rst

72 lines
2.3 KiB
ReStructuredText
Raw Normal View History

2024-02-15 11:13:57 +01:00
.. title:: Changelog
Changelog
#########
2024-02-19 14:52:57 +01:00
.. contents::
2024-02-15 11:13:57 +01:00
v2.0.0
======
**Breaking Changes:**
2024-02-19 14:52:57 +01:00
* Raised minimum PHP version from 8.0 to 8.1 in order to use `new features <https://www.php.net/releases/8.1/>`_ like
`array_is_list() <https://www.php.net/array_is_list>`_ and the spread operator on string-keyed arrays
* :php:namespace:`OCC\Basics\Interfaces` traits renamed and moved to different namespace
.. code-block::
OCC\Basics\InterfaceTraits\ArrayAccess -> OCC\Basics\Interfaces\ArrayAccessTrait
OCC\Basics\InterfaceTraits\Countable -> OCC\Basics\Interfaces\CountableTrait
OCC\Basics\InterfaceTraits\IteratorAggregate -> OCC\Basics\Interfaces\IteratorAggregateTrait
OCC\Basics\InterfaceTraits\Iterator -> OCC\Basics\Interfaces\IteratorTrait
2024-02-15 11:13:57 +01:00
* Renamed internal methods for :php:trait:`OCC\Basics\Traits\Getter` and :php:trait:`OCC\Basics\Traits\Setter` to avoid
2024-02-19 14:52:57 +01:00
confusion with regular class methods
2024-02-15 11:13:57 +01:00
.. code-block:: php
// old methods
2024-02-19 14:52:57 +01:00
function magicGet{PascalCasePropertyName}(): mixed
function magicSet{PascalCasePropertyName}(mixed $value): void
2024-02-15 11:13:57 +01:00
.. code-block:: php
// new methods
2024-02-19 14:52:57 +01:00
function _magicGet{PascalCasePropertyName}(): mixed
function _magicSet{PascalCasePropertyName}(mixed $value): void
2024-02-15 11:13:57 +01:00
**New Features:**
* Added new datastructure :php:class:`OCC\Basics\DataStructures\StrictCollection`
* Added new error handler :php:class:`OCC\Basics\ErrorHandlers\TriggerExceptionError`
* Added new trait :php:trait:`OCC\Basics\Traits\OverloadingGetter`
* Added new trait :php:trait:`OCC\Basics\Traits\OverloadingSetter`
* Extended API for all datastructures
2024-02-15 11:16:18 +01:00
* Extended `documentation <https://opencultureconsulting.github.io/php-basics/>`_
2024-02-15 11:13:57 +01:00
v1.1.0
======
**Breaking Changes:**
* Changed the constructor's signature for all :php:namespace:`OCC\Basics\DataStructures` to improve compatibility with
the corresponding `SPL datastructures <https://www.php.net/spl.datastructures>`_
.. code-block:: php
// old constructor signature
public function __construct(iterable $items = [], array $allowedTypes = [])
.. code-block:: php
// new constructor signature
public function __construct(array $allowedTypes = [])
v1.0.1
======
**New Features:**
* Improved exception handling in :php:trait:`Singleton <OCC\Basics\Traits\Singleton>` trait
v1.0.0
======
**Initial Release**