Skip to content

Commit cc5b9ec

Browse files
committed
Upgrade to PHP 8.1 and higher.
1 parent 8bbbb94 commit cc5b9ec

File tree

3 files changed

+27
-8
lines changed

3 files changed

+27
-8
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/.idea
2-
/bin/phing
2+
/bin/
33
/composer.lock
44
/custom.task.properties
55
/custom.type.properties
6-
/vendor
6+
/vendor

build.xml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,26 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project name="Phing Extensions" default="build" basedir=".">
3-
<target name="build"/>
3+
<target name="build">
4+
<echo message="Noting to do."/>
5+
</target>
46

57
<!-- Run composer update -->
68
<target name="update">
7-
<exec command="composer update" checkreturn="true" passthru="true"/>
9+
<exec executable="composer" checkreturn="true" passthru="true">
10+
<arg value="--ansi"/>
11+
<arg value="update"/>
12+
</exec>
13+
14+
<phing phingfile="build.xml" target="outdated" haltonfailure="true"/>
15+
</target>
16+
17+
<!-- Show outdated packages -->
18+
<target name="outdated">
19+
<exec executable="composer" checkreturn="false" passthru="true">
20+
<arg value="--ansi"/>
21+
<arg value="outdated"/>
22+
<arg value="--direct"/>
23+
</exec>
824
</target>
925

1026
<!-- Runs all unit tests -->

composer.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
"minimum-stability": "dev",
1010
"prefer-stable": true,
1111
"require": {
12-
"php": ">=7.4",
13-
"phing/phing": "^3.0.0",
14-
"setbased/helper-program-execution": "^1.0"
12+
"php": ">=8.1",
13+
"phing/phing": "^3.0.0-RC4",
14+
"setbased/helper-program-execution": "^1.2.0"
1515
},
1616
"autoload": {
1717
"psr-4": {
@@ -20,6 +20,9 @@
2020
},
2121
"config": {
2222
"bin-dir": "bin/",
23-
"sort-packages": true
23+
"sort-packages": true,
24+
"allow-plugins": {
25+
"phing/phing-composer-configurator": true
26+
}
2427
}
2528
}

0 commit comments

Comments
 (0)