Skip to content

Commit

Permalink
Upgrade to PHP 8.1 and higher.
Browse files Browse the repository at this point in the history
  • Loading branch information
prwater committed Jan 25, 2023
1 parent 8bbbb94 commit cc5b9ec
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/.idea
/bin/phing
/bin/
/composer.lock
/custom.task.properties
/custom.type.properties
/vendor
/vendor
20 changes: 18 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="Phing Extensions" default="build" basedir=".">
<target name="build"/>
<target name="build">
<echo message="Noting to do."/>
</target>

<!-- Run composer update -->
<target name="update">
<exec command="composer update" checkreturn="true" passthru="true"/>
<exec executable="composer" checkreturn="true" passthru="true">
<arg value="--ansi"/>
<arg value="update"/>
</exec>

<phing phingfile="build.xml" target="outdated" haltonfailure="true"/>
</target>

<!-- Show outdated packages -->
<target name="outdated">
<exec executable="composer" checkreturn="false" passthru="true">
<arg value="--ansi"/>
<arg value="outdated"/>
<arg value="--direct"/>
</exec>
</target>

<!-- Runs all unit tests -->
Expand Down
11 changes: 7 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=7.4",
"phing/phing": "^3.0.0",
"setbased/helper-program-execution": "^1.0"
"php": ">=8.1",
"phing/phing": "^3.0.0-RC4",
"setbased/helper-program-execution": "^1.2.0"
},
"autoload": {
"psr-4": {
Expand All @@ -20,6 +20,9 @@
},
"config": {
"bin-dir": "bin/",
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"phing/phing-composer-configurator": true
}
}
}

0 comments on commit cc5b9ec

Please sign in to comment.