PHP Basics

Changelog

v2.0.0

Breaking Changes:

  • Raised minimum PHP version from 8.0 to 8.1
  • Renamed traits for Interfaces and moved to different namespace
  • Renamed internal methods for Getter and Setter to avoid confusion with regular class method

    // old methods
    protected function magicGet{PascalCasePropertyName}(): mixed
    protected function magicSet{PascalCasePropertyName}(mixed $value): void
    // new methods
    protected function _magicGet{PascalCasePropertyName}(): mixed
    protected function _magicSet{PascalCasePropertyName}(mixed $value): void

New Features:

v1.1.0

Breaking Changes:

  • Changed the constructor's signature for all DataStructures to improve compatibility with the corresponding SPL datastructures

    // old constructor signature
    public function __construct(iterable $items = [], array $allowedTypes = [])
    // new constructor signature
    public function __construct(array $allowedTypes = [])

v1.0.1

New Features:

  • Improved exception handling in Singleton trait

v1.0.0

Initial Release

Search results