Skip to content

Commit 7baa2e1

Browse files
authored
feat: switch to new CLI parser (#704)
1 parent 608c02a commit 7baa2e1

15 files changed

Lines changed: 5133 additions & 479 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Setup PHP
1515
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # 2.36.0
1616
with:
17-
php-version: 8.2
17+
php-version: 8.3
1818
ini-values: assert.exception=1, phar.readonly=0, zend.assertions=1
1919
extensions: curl, json, phar, mbstring, gzip, bzip2, openssl
2020
tools: pecl, phing

.github/workflows/test.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ jobs:
1616
key: cache-v1 # can be any string, change to clear the extension cache.
1717
strategy:
1818
matrix:
19-
php-versions: ['8.2', '8.3']
19+
php-versions: ['8.3']
2020
experimental: [ false ]
2121
include:
2222
- php-versions: '8.4'
2323
experimental: true
24+
- php-versions: '8.5'
25+
experimental: true
2426
steps:
2527
- name: Checkout
2628
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -65,7 +67,7 @@ jobs:
6567
run: composer validate
6668

6769
- name: Install dependencies
68-
run: composer install --prefer-dist --no-progress --no-suggest --ignore-platform-reqs
70+
run: composer install --prefer-dist --no-progress --ignore-platform-reqs
6971

7072
- name: Setup Problem Matchers for PHPUnit
7173
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
@@ -223,7 +225,7 @@ jobs:
223225
run: composer validate
224226

225227
- name: Install dependencies
226-
run: composer install --prefer-dist --no-progress --no-suggest --ignore-platform-reqs
228+
run: composer install --prefer-dist --no-progress --ignore-platform-reqs
227229

228230
- name: Run test suite
229231
run: ./vendor/phpunit/phpunit/phpunit --configuration tests/phpunit.xml --exclude-group twig --coverage-clover=./var/coverage/clover.xml

.vacuum/ruleset.yaml

Lines changed: 991 additions & 0 deletions
Large diffs are not rendered by default.

build.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project name="PHPDraft" default="setup">
33
<target name="setup" depends="clean"/>
4-
<property name="min-php-version" value="8.1.0"/>
4+
<property name="min-php-version" value="8.3.0"/>
55

66
<target name="clean" unless="clean.done" description="Cleanup build artifacts">
77
<delete dir="${project.basedir}/build/coverage"/>
@@ -190,7 +190,6 @@
190190
<arg value="--no-interaction"/>
191191
<arg value="--no-progress"/>
192192
<arg value="--no-ansi"/>
193-
<arg value="--no-suggest"/>
194193
<arg value="--optimize-autoloader"/>
195194
<arg value="--prefer-stable"/>
196195
</exec>

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@
1818
}
1919
],
2020
"require": {
21-
"php": "^8.1",
22-
"vanilla/garden-cli": "~4.0",
21+
"php": "^8.3",
2322
"michelf/php-markdown": "~2.0",
2423
"lukasoppermann/http-status": "~4.0",
2524
"ext-json": "*",
2625
"ext-curl": "*",
2726
"twig/twig": "^3.0",
2827
"twig/markdown-extra": "^3.0",
2928
"matthiasmullie/minify": "^1.3",
30-
"rize/uri-template": "*"
29+
"rize/uri-template": "*",
30+
"splitbrain/php-cli": "^1.3"
3131
},
3232
"require-dev": {
33-
"lunr/halo": "~0.11.0",
33+
"lunr/halo": "dev-master",
3434
"phpunit/phpunit": "~11.0",
3535
"theseer/autoload": "~1.0",
3636
"phing/phing": "~3.0",

0 commit comments

Comments
 (0)