File tree 9 files changed +20
-16
lines changed
9 files changed +20
-16
lines changed Original file line number Diff line number Diff line change 22
22
- name : Setup PHP
23
23
uses : shivammathur/setup-php@v2
24
24
with :
25
- php-version : ' 8.2 '
25
+ php-version : ' 8.3 '
26
26
27
27
- name : Install dependencies
28
28
uses : ramsey/composer-install@v3
Original file line number Diff line number Diff line change 1
- name : Continuous Integration
1
+ name : CI
2
2
3
3
on :
4
- pull_request : null
4
+ pull_request :
5
5
push :
6
6
branches :
7
7
- master
8
- - develop
9
8
- release/**
10
9
11
10
permissions :
28
27
- ' 8.1'
29
28
- ' 8.2'
30
29
- ' 8.3'
30
+ - ' 8.4'
31
31
symfony-version :
32
32
- 4.4.*
33
33
- 5.*
52
52
symfony-version : 7.*
53
53
- php : ' 8.1'
54
54
symfony-version : 7.*
55
+ - php : ' 8.4'
56
+ symfony-version : 4.4.*
55
57
include :
56
58
- php : ' 7.2'
57
59
symfony-version : 4.4.*
82
84
- name : Setup Problem Matchers for PHPUnit
83
85
run : echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
84
86
85
- - name : Update PHPUnit
86
- run : composer require --dev phpunit/phpunit ^9.3.9 --no-update
87
- if : matrix.php == '8.0' && matrix.dependencies == 'lowest'
87
+ # These dependencies are not used running the tests but can cause deprecation warnings so we remove them before running the tests
88
+ - name : Remove unused dependencies
89
+ run : composer remove vimeo/psalm phpstan/phpstan friendsofphp/php-cs-fixer --dev --no-interaction --no-update
88
90
89
91
- name : Install dependencies
90
92
uses : ramsey/composer-install@v3
@@ -118,7 +120,7 @@ jobs:
118
120
- php : ' 8.0'
119
121
dependencies : lowest
120
122
symfony-version : 4.4.*
121
- - php : ' 8.3 '
123
+ - php : ' 8.4 '
122
124
dependencies : highest
123
125
124
126
steps :
Original file line number Diff line number Diff line change 15
15
"php" : " ^7.2||^8.0" ,
16
16
"guzzlehttp/psr7" : " ^2.1.1" ,
17
17
"jean85/pretty-package-versions" : " ^1.5||^2.0" ,
18
- "sentry/sentry" : " ^4.9 .0" ,
18
+ "sentry/sentry" : " ^4.10 .0" ,
19
19
"symfony/cache-contracts" : " ^1.1||^2.4||^3.0" ,
20
20
"symfony/config" : " ^4.4.20||^5.0.11||^6.0||^7.0" ,
21
21
"symfony/console" : " ^4.4.20||^5.0.11||^6.0||^7.0" ,
36
36
"phpstan/phpstan" : " 1.12.5" ,
37
37
"phpstan/phpstan-phpunit" : " 1.4.0" ,
38
38
"phpstan/phpstan-symfony" : " 1.4.10" ,
39
- "phpunit/phpunit" : " ^8.5.14 ||^9.3.9 " ,
39
+ "phpunit/phpunit" : " ^8.5.40 ||^9.6.21 " ,
40
40
"symfony/browser-kit" : " ^4.4.20||^5.0.11||^6.0||^7.0" ,
41
41
"symfony/cache" : " ^4.4.20||^5.0.11||^6.0||^7.0" ,
42
42
"symfony/dom-crawler" : " ^4.4.20||^5.0.11||^6.0||^7.0" ,
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ final class TraceableResponseForV5 extends AbstractTraceableResponse implements
16
16
*
17
17
* @return mixed
18
18
*/
19
- public function getInfo (string $ type = null )
19
+ public function getInfo (? string $ type = null )
20
20
{
21
21
return $ this ->response ->getInfo ($ type );
22
22
}
Original file line number Diff line number Diff line change 7
7
/** @var ContainerBuilder $container */
8
8
$ container ->loadFromExtension ('sentry ' , [
9
9
'options ' => [
10
- 'error_types ' => \E_ALL & ~(\E_NOTICE | \E_STRICT | \E_DEPRECATED ),
10
+ // 2048 is \E_STRICT which has been deprecated in PHP 8.4 so we should not reference it directly to prevent deprecation notices
11
+ 'error_types ' => \E_ALL & ~(\E_NOTICE | 2048 | \E_DEPRECATED ),
11
12
],
12
13
]);
Original file line number Diff line number Diff line change 7
7
https://sentry.io/schema/dic/sentry-symfony https://sentry.io/schema/dic/sentry-symfony/sentry-1.0.xsd" >
8
8
9
9
<
sentry : config dsn =
" https://[email protected] /0" >
10
- <sentry : options error-types =" E_ALL & ~(E_NOTICE|E_STRICT |E_DEPRECATED)" />
10
+ <sentry : options error-types =" E_ALL & ~(E_NOTICE|2048 |E_DEPRECATED)" />
11
11
</sentry : config >
12
12
</container >
Original file line number Diff line number Diff line change 1
1
sentry :
2
2
options :
3
- error_types : E_ALL & ~(E_NOTICE|E_STRICT |E_DEPRECATED)
3
+ error_types : E_ALL & ~(E_NOTICE|2048 |E_DEPRECATED)
Original file line number Diff line number Diff line change @@ -288,7 +288,8 @@ public function testErrorTypesOptionIsParsedFromStringToIntegerValue(): void
288
288
$ container = $ this ->createContainerFromFixture ('error_types ' );
289
289
$ optionsDefinition = $ container ->getDefinition ('sentry.client.options ' );
290
290
291
- $ this ->assertSame (\E_ALL & ~(\E_NOTICE | \E_STRICT | \E_DEPRECATED ), $ optionsDefinition ->getArgument (0 )['error_types ' ]);
291
+ // 2048 is \E_STRICT which has been deprecated in PHP 8.4 so we should not reference it directly to prevent deprecation notices
292
+ $ this ->assertSame (\E_ALL & ~(\E_NOTICE | 2048 | \E_DEPRECATED ), $ optionsDefinition ->getArgument (0 )['error_types ' ]);
292
293
}
293
294
294
295
/**
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ class TracingController
21
21
*/
22
22
private $ connection ;
23
23
24
- public function __construct (HubInterface $ hub , Connection $ connection = null )
24
+ public function __construct (HubInterface $ hub , ? Connection $ connection = null )
25
25
{
26
26
$ this ->hub = $ hub ;
27
27
$ this ->connection = $ connection ;
You can’t perform that action at this time.
0 commit comments