Skip to content

V1.1.2 Alpha: PHP 8 Refactor

Pre-release
Pre-release

Choose a tag to compare

@aawnu aawnu released this 24 Feb 20:12
· 219 commits to master since this release
7e197a8

[PRE] Major refactor to suit PHP8+ supported functionality

Important Changes

  • Requires custom events to be updated to implement AlexWestergaard\PhpGa4\Facade\Type\Event or extend AlexWestergaard\PhpGa4\Helper\AbstractEvent
  • Requires tryCatch to to use AlexWestergaard\PhpGa4\Exception\Ga4Exception for all exceptions thrown inside this library

What's Changed

  • Fix readme php typo by @8ctopus in #31
  • Add phpunit code coverage support by @8ctopus in #30
  • Major refactor of codebase for PHP8+ by @aawnu in #29
  • Removes Helper/Helper class
    • Constants moved into Facades
    • Helpers moved into Helper/Converter
  • Removes Model/*.php classes
  • Removes root GA4Exception.php
  • Updates Composer.json to better represent model and tested packages/PHP-Versions
  • Updates workflow to only test on Linux (Windows too slow)
  • Adds Type Facades to expected functionality and simplicy Paramter Type Expectation
  • Adds ArrayAccess and Iterator to classes with magic-references to set_ or add_ methods
  • Adds further Exceptions for more specific tryCatch optionality
  • Adds better testing of functionality, both core classes and Events
  • Adds output of PHPUnit Coverage in actions (No further usage atm)
  • Moves Facades into subfolder named Group/
  • Deprecated badly named and bad usage methods

New Contributors

Full Changelog: 1.1.1...v1.1.2-alpha