File tree Expand file tree Collapse file tree 9 files changed +38
-18
lines changed Expand file tree Collapse file tree 9 files changed +38
-18
lines changed Original file line number Diff line number Diff line change 6
6
7
7
jobs :
8
8
phpcs :
9
- runs-on : ubuntu-20.04
9
+ runs-on : ubuntu-latest
10
10
steps :
11
11
- name : Checkout
12
- uses : actions/checkout@v2
12
+ uses : actions/checkout@v4
13
13
- name : Install PHP
14
14
uses : shivammathur/setup-php@v2
15
15
with :
16
16
coverage : none
17
- php-version : " 8.0 "
17
+ php-version : " 8.3 "
18
18
ini-values : memory_limit=-1
19
19
tools : phpcs, cs2pr
20
20
- name : Run PHP Code Sniffer
Original file line number Diff line number Diff line change 7
7
jobs :
8
8
phpstan :
9
9
name : phpstan
10
- runs-on : ubuntu-20.04
10
+ runs-on : ubuntu-latest
11
11
steps :
12
12
- name : Checkout
13
- uses : actions/checkout@v2
13
+ uses : actions/checkout@v4
14
14
- name : Install PHP
15
15
uses : shivammathur/setup-php@v2
16
16
with :
17
- php-version : " 8.1 "
17
+ php-version : " 8.3 "
18
18
ini-values : memory_limit=-1
19
19
tools : composer:v2
20
20
- name : Cache dependencies
21
- uses : actions/cache@v2
21
+ uses : actions/cache@v4
22
22
with :
23
23
path : |
24
24
~/.composer/cache
Original file line number Diff line number Diff line change 7
7
jobs :
8
8
phpunit :
9
9
name : phpunit
10
- runs-on : ubuntu-20.04
10
+ runs-on : ubuntu-latest
11
11
strategy :
12
12
matrix :
13
13
php-version :
14
14
- " 8.1"
15
15
- " 8.2"
16
+ - " 8.3"
16
17
steps :
17
18
- name : Checkout
18
- uses : actions/checkout@v2
19
+ uses : actions/checkout@v4
19
20
- name : Install PHP
20
21
uses : shivammathur/setup-php@v2
21
22
with :
24
25
ini-values : memory_limit=-1
25
26
tools : composer:v2
26
27
- name : Cache dependencies
27
- uses : actions/cache@v2
28
+ uses : actions/cache@v4
28
29
with :
29
30
path : |
30
31
~/.composer/cache
39
40
run : make test-coveralls
40
41
41
42
- name : Upload code coverage
42
- if : ${{ matrix.php-version == '8.1 ' }}
43
+ if : ${{ matrix.php-version == '8.3 ' }}
43
44
env :
44
45
COVERALLS_REPO_TOKEN : ${{ secrets.GITHUB_TOKEN }}
45
46
run : |
Original file line number Diff line number Diff line change 1
1
ARG PHP_VERSION
2
- FROM php:${PHP_VERSION}-cli-buster
2
+ FROM php:${PHP_VERSION}-cli-bookworm
3
3
4
4
RUN apt-get update && \
5
5
apt-get install -y autoconf pkg-config && \
Original file line number Diff line number Diff line change @@ -34,7 +34,12 @@ test-container-81:
34
34
35
35
.PHONY : test-container-82
36
36
test-container-82 :
37
- @-docker-compose run --rm app81 bash
37
+ @-docker-compose run --rm app82 bash
38
+ @docker-compose down -v
39
+
40
+ .PHONY : test-container-83
41
+ test-container-83 :
42
+ @-docker-compose run --rm app83 bash
38
43
@docker-compose down -v
39
44
40
45
.PHONY : lint
Original file line number Diff line number Diff line change 25
25
},
26
26
"require-dev" : {
27
27
"phpstan/phpstan" : " ^1.10" ,
28
- "phpunit/phpunit" : " ^10.3 " ,
28
+ "phpunit/phpunit" : " ^10.5 " ,
29
29
"symfony/config" : " ^6.3"
30
30
},
31
31
"autoload" : {
Original file line number Diff line number Diff line change @@ -21,3 +21,13 @@ services:
21
21
volumes :
22
22
- .:/app:delegated
23
23
- ~/.composer:/root/.composer:delegated
24
+ app83 :
25
+ build :
26
+ context : .
27
+ args :
28
+ PHP_VERSION : " 8.3"
29
+ environment :
30
+ PHP_IDE_CONFIG : " serverName=symfony-di-proxy"
31
+ volumes :
32
+ - .:/app:delegated
33
+ - ~/.composer:/root/.composer:delegated
Original file line number Diff line number Diff line change @@ -106,9 +106,13 @@ function (ReflectionParameter $parameter) {
106
106
private function renderType (ReflectionType $ type ): string
107
107
{
108
108
if ($ type instanceof ReflectionUnionType) {
109
- return implode ('| ' , array_map (function (ReflectionNamedType $ namedType ) {
110
- return $ namedType ->getName ();
111
- }, $ type ->getTypes ()));
109
+ return implode (
110
+ '| ' ,
111
+ array_map (
112
+ fn (ReflectionNamedType $ namedType ) => $ namedType ->getName (), // @phpstan-ignore-line
113
+ $ type ->getTypes ()
114
+ )
115
+ );
112
116
}
113
117
114
118
assert ($ type instanceof ReflectionNamedType);
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" ?>
2
2
<phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
- xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/10.3 /phpunit.xsd"
3
+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/10.5 /phpunit.xsd"
4
4
colors =" true"
5
5
bootstrap =" tests/bootstrap.php"
6
6
>
You can’t perform that action at this time.
0 commit comments