File tree Expand file tree Collapse file tree 10 files changed +19
-10
lines changed Expand file tree Collapse file tree 10 files changed +19
-10
lines changed Original file line number Diff line number Diff line change 7
7
strategy :
8
8
matrix :
9
9
operating-system : [ubuntu-latest]
10
- php-versions : ['8.0 ', '8.1 ']
10
+ php-versions : ['8.1 ', '8.2 ']
11
11
fail-fast : false
12
12
name : PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}
13
13
steps :
Original file line number Diff line number Diff line change 7
7
strategy :
8
8
matrix :
9
9
operating-system : [ubuntu-latest]
10
- php-versions : ['8.0 ', '8.1 ']
10
+ php-versions : ['8.1 ', '8.2 ']
11
11
fail-fast : false
12
12
name : PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}
13
13
steps :
Original file line number Diff line number Diff line change 7
7
strategy :
8
8
matrix :
9
9
operating-system : [ubuntu-latest]
10
- php-versions : ['8.0 ', '8.1 ']
10
+ php-versions : ['8.1 ', '8.2 ']
11
11
fail-fast : false
12
12
name : PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}
13
13
steps :
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<phive xmlns =" https://phar.io/phive" >
3
- <phar name =" psalm" version =" ^4.13.1 " installed =" 4.13.1 " location =" ./tools/psalm.phar" copy =" true" />
4
- <phar name =" php-cs-fixer" version =" ^3.3.2 " installed =" 3.3.2 " location =" ./tools/php-cs-fixer.phar" copy =" true" />
3
+ <phar name =" psalm" version =" ^4.29.0 " installed =" 4.29.0 " location =" ./tools/psalm.phar" copy =" true" />
4
+ <phar name =" php-cs-fixer" version =" ^3.12.0 " installed =" 3.12.0 " location =" ./tools/php-cs-fixer.phar" copy =" true" />
5
5
</phive >
Original file line number Diff line number Diff line change 20
20
}
21
21
],
22
22
"require" : {
23
- "php" : " ^8 .0" ,
23
+ "php" : " ~8.1.0 || ~8.2 .0" ,
24
24
"ext-dom" : " *" ,
25
- "veewee/xml" : " ^1.0 "
25
+ "veewee/xml" : " ^2.1 "
26
26
},
27
27
"require-dev" : {
28
28
"phpunit/phpunit" : " ^9.5"
Original file line number Diff line number Diff line change 2
2
<psalm
3
3
errorLevel =" 1"
4
4
resolveFromConfigFile =" true"
5
- forbidEcho =" true"
6
5
strictBinaryOperands =" true"
7
6
phpVersion =" 8.0"
8
7
allowStringToStandInForClass =" true"
Original file line number Diff line number Diff line change 3
3
4
4
namespace Soap \Xml \Builder ;
5
5
6
+ use Closure ;
6
7
use DOMElement ;
7
8
use DOMNode ;
8
9
use VeeWee \Xml \Dom \Builder \Builder ;
10
+ use function Psl \Vec \map ;
9
11
use function VeeWee \Xml \Dom \Builder \children ;
10
12
use function VeeWee \Xml \Dom \Builder \namespaced_element ;
11
13
@@ -37,7 +39,10 @@ public function __invoke(DOMNode $node): DOMNode
37
39
namespaced_element (
38
40
$ this ->namespace ,
39
41
$ this ->name ,
40
- ...$ this ->configurators
42
+ ...map (
43
+ $ this ->configurators ,
44
+ static fn (callable $ configurator ): Closure => $ configurator (...)
45
+ )
41
46
)
42
47
)($ node );
43
48
}
Original file line number Diff line number Diff line change 2
2
3
3
namespace Soap \Xml \Builder ;
4
4
5
+ use Closure ;
5
6
use DOMElement ;
6
7
use DOMNode ;
7
8
use VeeWee \Xml \Dom \Builder \Builder ;
9
+ use function Psl \Vec \map ;
8
10
use function VeeWee \Xml \Dom \Builder \namespaced_element ;
9
11
use function VeeWee \Xml \Dom \Locator \Node \detect_document ;
10
12
use function VeeWee \Xml \Dom \Locator \root_namespace_uri ;
@@ -35,7 +37,10 @@ public function __invoke(DOMNode $node): DOMNode
35
37
return namespaced_element (
36
38
root_namespace_uri ()($ document ) ?? '' ,
37
39
'soap:Header ' ,
38
- ...$ this ->configurators
40
+ ...map (
41
+ $ this ->configurators ,
42
+ static fn (callable $ configurator ): Closure => $ configurator (...)
43
+ )
39
44
)($ node );
40
45
}
41
46
}
You can’t perform that action at this time.
0 commit comments