Skip to content

Commit 248fefa

Browse files
committed
general: use PHP 8.0 minimum
1 parent 1ca1c8d commit 248fefa

File tree

11 files changed

+224
-81
lines changed

11 files changed

+224
-81
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,3 @@ updates:
55
schedule:
66
interval: daily
77
open-pull-requests-limit: 10
8-
ignore:
9-
- dependency-name: phpstan/phpstan
10-
versions:
11-
- 0.12.70
12-
- 0.12.77
13-
- 0.12.78
14-
- 0.12.79
15-
- 0.12.83

.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@v2
1616
with:
17-
php-version: 7.4
17+
php-version: 8.1
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
key: cache-v1 # can be any string, change to clear the extension cache.
1919
strategy:
2020
matrix:
21-
php-versions: ['8.0', '8.1', '8.2']
21+
php-versions: ['8.1', '8.2']
2222
experimental: [ false ]
2323
include:
2424
- php-versions: 8.3

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM apiaryio/drafter:latest as drafter
22
FROM composer:latest as composer
33

4-
FROM php:7.4-cli-alpine as build
4+
FROM php:8.1-cli-alpine as build
55
RUN apk add --no-cache \
66
$PHPIZE_DEPS \
77
openssl-dev
@@ -15,7 +15,7 @@ RUN /usr/bin/composer install
1515
RUN vendor/bin/phing phar-nightly
1616
COPY build/out/phpdraft-nightly.phar /usr/local/bin/phpdraft
1717

18-
FROM php:7.4-cli-alpine
18+
FROM php:8.1-cli-alpine
1919
LABEL maintainer="Sean Molenaar sean@seanmolenaar.eu"
2020
RUN apk add --no-cache gcc
2121
COPY --from=drafter /usr/local/bin/drafter /usr/local/bin/drafter

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This is a parser for API Blueprint files in PHP.[1](#dependencies)
66
PHPDraft requires [drafter](https://github.com/apiaryio/drafter) to be installed. Refer to the drafter page for the installation details. If you don't want to install drafter, you can pass `-o` to the command to make it use [https://api.apiblueprint.org/parser](https://api.apiblueprint.org/parser)
77

88
## Usage
9-
Requires PHP 7.0+ to run. Unittests require runkit or uopz
9+
Requires PHP 8.1+ to run. Unittests require runkit or uopz
1010
For direct usage you can run:
1111
```bash
1212
$ ./phpdraft.phar -f blueprint-file.apib > blueprint-webpage.html

build.xml

Lines changed: 1 addition & 1 deletion
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="7.4.0"/>
4+
<property name="min-php-version" value="8.0.0"/>
55

66
<target name="clean" unless="clean.done" description="Cleanup build artifacts">
77
<delete dir="${project.basedir}/build/coverage"/>

composer.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
}
1919
],
2020
"require": {
21-
"php": "^7.4||^8.0",
21+
"php": "^8.1",
2222
"ql/uri-template": "~1.0",
23-
"vanilla/garden-cli": "~3.0",
23+
"vanilla/garden-cli": "~4.0",
2424
"michelf/php-markdown": "~2.0",
2525
"lukasoppermann/http-status": "~3.1",
2626
"ext-json": "*",
@@ -31,11 +31,14 @@
3131
},
3232
"require-dev": {
3333
"lunr/halo": "dev-master",
34-
"phpunit/phpunit": "~9.0",
34+
"phpunit/phpunit": "~9.6",
3535
"theseer/autoload": "~1.0",
3636
"phing/phing": "~2.0",
3737
"phpstan/phpstan": "^1.2.0",
38-
"phpstan/phpstan-phpunit": "^1.0.0"
38+
"phpstan/phpstan-phpunit": "^1.0.0",
39+
"phpstan/phpstan-strict-rules": "^1.5",
40+
"phpstan/extension-installer": "^1.3",
41+
"phpstan/phpstan-deprecation-rules": "^1.1"
3942
},
4043
"autoload": {
4144
"psr-4": { "PHPDraft\\": "src/PHPDraft" }
@@ -44,5 +47,10 @@
4447
"classmap": [
4548
"tests/"
4649
]
50+
},
51+
"config": {
52+
"allow-plugins": {
53+
"phpstan/extension-installer": true
54+
}
4755
}
4856
}

0 commit comments

Comments
 (0)