diff --git a/CHANGELOG.md b/CHANGELOG.md index 3cfdc3e..fcb693e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ This is the Developer Changelog for Matomo PHP Tracker. All breaking changes or new features are listed below. +## Matomo PHP Tracker 3.3.0 +### Removed +- support for PHP versions lower than 7.2 +### Changed +- all `MatomoTracker` class constants are now explicitly public +- all `MatomoTracker` dynamic properties are now explicitly public + ## Matomo PHP Tracker 3.0.0 Attention: This version of Matomo PHP Tracker is no longer compatible with Matomo 3.x or earlier diff --git a/MatomoTracker.php b/MatomoTracker.php index 6ca4c08..7b65ace 100644 --- a/MatomoTracker.php +++ b/MatomoTracker.php @@ -37,7 +37,7 @@ class MatomoTracker * @ignore * @var int */ - const VERSION = 1; + public const VERSION = 1; /** * @ignore @@ -49,27 +49,27 @@ class MatomoTracker * * @ignore */ - const LENGTH_VISITOR_ID = 16; + public const LENGTH_VISITOR_ID = 16; /** * Charset * @see setPageCharset * @ignore */ - const DEFAULT_CHARSET_PARAMETER_VALUES = 'utf-8'; + public const DEFAULT_CHARSET_PARAMETER_VALUES = 'utf-8'; /** * See matomo.js */ - const FIRST_PARTY_COOKIES_PREFIX = '_pk_'; + public const FIRST_PARTY_COOKIES_PREFIX = '_pk_'; /** * Defines how many categories can be used max when calling addEcommerceItem(). * @var int */ - const MAX_NUM_ECOMMERCE_ITEM_CATEGORIES = 5; + public const MAX_NUM_ECOMMERCE_ITEM_CATEGORIES = 5; - const DEFAULT_COOKIE_PATH = '/'; + public const DEFAULT_COOKIE_PATH = '/'; public $ecommerceItems = []; diff --git a/composer.json b/composer.json index c4c6f98..298087d 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ "source": "https://github.com/matomo-org/matomo-php-tracker" }, "require": { - "php": "^7.0 || ^8.0", + "php": "^7.2 || ^8.0", "ext-json": "*" }, "suggest": { @@ -26,13 +26,11 @@ "autoload": { "classmap": ["."] }, - "autoload-dev": { "psr-4": { "\\": "tests/" } }, - "require-dev": { "phpunit/phpunit": "^9.3 || ^10.1" } diff --git a/tests/Unit/MatomoTrackerTest.php b/tests/Unit/MatomoTrackerTest.php index 1dcf5c1..703b631 100644 --- a/tests/Unit/MatomoTrackerTest.php +++ b/tests/Unit/MatomoTrackerTest.php @@ -1,4 +1,7 @@