Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop support of php versions < 7.2 #132

Merged
merged 9 commits into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions MatomoTracker.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class MatomoTracker
* @ignore
* @var int
*/
const VERSION = 1;
public const VERSION = 1;

/**
* @ignore
Expand All @@ -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;
michalkleiner marked this conversation as resolved.
Show resolved Hide resolved
public const MAX_NUM_ECOMMERCE_ITEM_CATEGORIES = 5;

const DEFAULT_COOKIE_PATH = '/';
public const DEFAULT_COOKIE_PATH = '/';

public $ecommerceItems = [];

Expand Down
4 changes: 1 addition & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"source": "https://github.com/matomo-org/matomo-php-tracker"
},
"require": {
"php": "^7.0 || ^8.0",
"php": "^7.2 || ^8.0",
michalkleiner marked this conversation as resolved.
Show resolved Hide resolved
"ext-json": "*"
},
"suggest": {
Expand All @@ -26,13 +26,11 @@
"autoload": {
"classmap": ["."]
},

"autoload-dev": {
"psr-4": {
"\\": "tests/"
}
},

"require-dev": {
"phpunit/phpunit": "^9.3 || ^10.1"
}
Expand Down
3 changes: 3 additions & 0 deletions tests/Unit/MatomoTrackerTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php

declare(strict_types=1);

/**
* Matomo - free/libre analytics platform
*
Expand Down