Skip to content

Commit

Permalink
Merge pull request #132 from lutdev/118-php-version
Browse files Browse the repository at this point in the history
118 - Drop support of older php versions
  • Loading branch information
sgiehl authored May 17, 2024
2 parents bf4a5c7 + ee98f14 commit 6dd138e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
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;
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",
"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

0 comments on commit 6dd138e

Please sign in to comment.