Skip to content

Releases: opencultureconsulting/php-basics

PHP Basics v2.1.3

28 Aug 19:03

Choose a tag to compare

This is a maintenance release.

Maintenance:

  • Updated development dependencies
  • Raised PHPStan rule level to 10
  • Updated links to documentation
  • Used more generics in PHPStan and Psalm type-hints

Full Changelog: v2.1.2...v2.1.3

PHP Basics v2.1.2

07 Sep 19:35

Choose a tag to compare

This is a maintenance release.

New Features:

  • Added Composer commands for development tools (PHP Mess Detector, Psalm Taint Analysis)

Full Changelog: v2.1.1...v2.1.2

PHP Basics v2.1.1

11 Jul 11:17

Choose a tag to compare

This is a maintenance release.

New Features:

  • Added Composer commands for development tools (PHP_CodeSniffer, PHP-CS-Fixer, PHPStan, Psalm and phpDocumentor)

Minor Changes:

Full Changelog: v2.1.0...v2.1.1

PHP Basics v2.1.0

03 Apr 20:41

Choose a tag to compare

This is a minor release.

Breaking Changes:

  • OCC\Basics\DataStructures\Traits\StrictSplDatastructureTrait renamed to OCC\Basics\DataStructures\Traits\StrictSplDoublyLinkedListTrait

New Features:

  • Extended API for OCC\Basics\DataStructures\StrictArray

Full Changelog: v2.0.0...v2.1.0

PHP Basics v2.0.0

31 Mar 15:57

Choose a tag to compare

This is a major release.

Breaking Changes:

  • Raised minimum PHP version from 8.0 to 8.1 in order to use new features like array_is_list() and the spread operator on string-keyed arrays
  • Interface traits renamed and moved to a different namespace
    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
    
  • Prefixed internal methods for OCC\Basics\Traits\Getter and OCC\Basics\Traits\Setter with _ to avoid confusion with regular class methods
    // old methods
    function magicGet{Property}(): mixed
    function magicSet{Property}(mixed $value): void
    
    // new methods
    function _magicGet{Property}(): mixed
    function _magicSet{Property}(mixed $value): void
    

New Features:

  • Added new datastructure OCC\Basics\DataStructures\StrictCollection
  • Added new datastructure OCC\Basics\DataStructures\StrictArray
  • Added new error handler OCC\Basics\ErrorHandlers\TriggerExceptionError
  • Added new trait OCC\Basics\Traits\OverloadingGetter
  • Added new trait OCC\Basics\Traits\OverloadingSetter
  • Added new trait OCC\Basics\Traits\TypeChecker
  • Extended API for all datastructures (see OCC\Basics\DataStructures\Traits\StrictSplDatastructureTrait)
  • Introduced OCC\Basics\DataStructures\Exceptions\InvalidDataTypeException for strict datastructures
  • Extended documentation

Full Changelog: v1.1.0...v2.0.0

PHP Basics v1.1.0

22 Jan 20:07

Choose a tag to compare

This is a major release. It changes the constructor of StrictList, StrictQueue and StrictStack to make them more compatible to SplDoublyLinkedList.

Full Changelog: v1.0.1...v1.1.0

PHP Basics v1.0.1

03 Jan 14:31

Choose a tag to compare

This is a minor release. It just adds one small feature.

Full Changelog: v1.0.0...v1.0.1

PHP Basics v1.0.0

01 Jan 09:23

Choose a tag to compare

This is the first official release.