Skip to content

Commit 3d32227

Browse files
authored
KDS-587 module kodus sentry upgrade to php 8.4 (New major 3.0.0) (#12)
* Update to PHP 8.4 #KDS-587 * Update to 8.4 and add upgrading message #KDS-587
1 parent f8522f3 commit 3d32227

File tree

5 files changed

+149
-102
lines changed

5 files changed

+149
-102
lines changed

.github/workflows/test.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ jobs:
1111
strategy:
1212
matrix:
1313
operating-system: [ ubuntu-latest, ubuntu-20.04 ]
14-
php: [ '8.0', '8.1' ]
14+
php: [ '8.4' ]
1515

1616
steps:
1717
- uses: actions/checkout@master
1818

19-
- name: Setup PHP
20-
uses: nanasess/setup-php@master
19+
- name: Setup PHP Action
20+
uses: shivammathur/setup-php@master
2121
with:
2222
php-version: ${{ matrix.php }}
2323

2424
- name: Install dependencies
2525
run: composer install
2626

2727
- name: Run tests
28-
run: php vendor/bin/codecept run
28+
run: composer run test

UPGRADING.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#### Upgrading from `2.x` to `3.0`
2+
The repository now requires PHP 8.4 or higher. Ensure your environment is updated accordingly.
3+
4+
The E_STRICT error level constant has been removed from Kodus\Sentry\Extensions due to its deprecation and removal in PHP 8.4. Replace any references to E_STRICT in your code, as it is no longer necessary. PHP 8.4 enforces stricter standards as part of E_ALL.
5+
16
#### Upgrading from `1.x` to `2.0`
27

38
The constructor signature of `SentryClient` has changed.

composer.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111
],
1212
"require": {
13-
"php": ">=8.0",
13+
"php": ">=8.4",
1414
"ext-json": "*",
1515
"psr/http-message": "^1.0",
1616
"psr/log": "^1.0",
@@ -32,5 +32,8 @@
3232
"Tests\\Fixtures\\": "tests/Fixtures",
3333
"Tests\\Unit\\": "tests/Unit"
3434
}
35+
},
36+
"scripts": {
37+
"test": "codecept run"
3538
}
3639
}

src/Extensions/ExceptionReporter.php

-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ class ExceptionReporter implements SentryClientExtension
7070
E_USER_ERROR => Level::ERROR,
7171
E_NOTICE => Level::INFO,
7272
E_USER_NOTICE => Level::INFO,
73-
E_STRICT => Level::INFO,
7473
];
7574

7675
/**

0 commit comments

Comments
 (0)