Skip to content

Commit

Permalink
Merge pull request #673 from javer/php82
Browse files Browse the repository at this point in the history
Add PHP 8.2 compatibility
  • Loading branch information
NielsLeenheer authored Apr 16, 2024
2 parents 1044880 + 90b0e6d commit 6ed98e1
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

strategy:
matrix:
php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2']

steps:
- name: Checkout source
Expand Down
2 changes: 2 additions & 0 deletions src/Analyser/Header/Baidu.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

class Baidu
{
private $data;

public function __construct($header, &$data)
{
$this->data =& $data;
Expand Down
2 changes: 2 additions & 0 deletions src/Analyser/Header/BrowserId.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

class BrowserId
{
private $data;

public function __construct($header, &$data)
{
if ($header == 'XMLHttpRequest') {
Expand Down
2 changes: 2 additions & 0 deletions src/Analyser/Header/OperaMini.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

class OperaMini
{
private $data;

public function __construct($header, &$data)
{
$this->data =& $data;
Expand Down
2 changes: 2 additions & 0 deletions src/Analyser/Header/Puffin.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

class Puffin
{
private $data;

public function __construct($header, &$data)
{
$this->data =& $data;
Expand Down
2 changes: 2 additions & 0 deletions src/Analyser/Header/UCBrowserNew.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

class UCBrowserNew
{
private $data;

public function __construct($header, &$data)
{
$this->data =& $data;
Expand Down
2 changes: 2 additions & 0 deletions src/Analyser/Header/UCBrowserOld.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

class UCBrowserOld
{
private $data;

public function __construct($header, &$data)
{
$this->data =& $data;
Expand Down
4 changes: 4 additions & 0 deletions src/Analyser/Header/Useragent.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ class Useragent
{
use Useragent\Os, Useragent\Device, Useragent\Browser, Useragent\Application, Useragent\Using, Useragent\Engine, Useragent\Bot;

private $data;

private $options;

public function __construct($header, &$data, &$options)
{
$this->data =& $data;
Expand Down
2 changes: 2 additions & 0 deletions src/Analyser/Header/Wap.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

class Wap
{
private $data;

public function __construct($header, &$data)
{
$this->data =& $data;
Expand Down
1 change: 1 addition & 0 deletions src/Model/Primitive/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @internal
*/

#[\AllowDynamicProperties]
class Base
{
/**
Expand Down

0 comments on commit 6ed98e1

Please sign in to comment.