Skip to content

Commit 86b5a99

Browse files
committed
Require PHP 7.2+
1 parent 7ee931b commit 86b5a99

10 files changed

Lines changed: 46 additions & 22 deletions

File tree

.github/workflows/code-style.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
uses: shivammathur/setup-php@v2
1515
with:
1616
coverage: none
17-
php-version: "7.1"
17+
php-version: "7.2"
1818
ini-values: memory_limit=-1
1919
tools: phpcs, cs2pr
2020
- name: Run PHP Code Sniffer

.github/workflows/static-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Install PHP
1414
uses: shivammathur/setup-php@v2
1515
with:
16-
php-version: "7.1"
16+
php-version: "7.2"
1717
ini-values: memory_limit=-1
1818
tools: composer:v2
1919
- name: Cache dependencies

.github/workflows/test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
php-version:
14-
- "7.1"
14+
- "7.2"
1515
- "7.4"
1616
- "8.4"
1717
steps:
@@ -39,10 +39,10 @@ jobs:
3939
- name: Run PHPUnit
4040
run: make test-coveralls
4141
env:
42-
PHPUNIT_VERSION: "${{ matrix.php-version == '8.4' && '11' || '07' }}"
42+
PHPUNIT_VERSION: "${{ matrix.php-version == '8.4' && '11' || '08' }}"
4343

4444
- name: Upload code coverage
45-
if: ${{ matrix.php-version == '7.1' }}
45+
if: ${{ matrix.php-version == '7.2' }}
4646
env:
4747
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4848
run: |
@@ -58,7 +58,7 @@ jobs:
5858
uses: shivammathur/setup-php@v2
5959
with:
6060
coverage: xdebug
61-
php-version: "7.1"
61+
php-version: "7.2"
6262
ini-values: memory_limit=-1
6363
tools: composer:v2
6464
- name: Cache dependencies
@@ -67,13 +67,13 @@ jobs:
6767
path: |
6868
~/.composer/cache
6969
vendor
70-
key: "php-7.1"
71-
restore-keys: "php-7.1"
70+
key: "php-7.2"
71+
restore-keys: "php-7.2"
7272

7373
- name: Install dependencies
7474
run: composer install --no-interaction --no-progress
7575

7676
- name: Run PHPUnit
7777
run: make test
7878
env:
79-
PHPUNIT_VERSION: "07-helpers"
79+
PHPUNIT_VERSION: "08-helpers"

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# CHANGELOG
22

3+
## v4.0.0
4+
5+
### New requirements
6+
7+
Require PHP 7.2+
8+
9+
### New features
10+
11+
None
12+
13+
### Backward Incompatible Changes
14+
15+
None
16+
17+
### Deprecated Features
18+
19+
None
20+
21+
### Other Changes
22+
23+
Updated PHPUnit to v.8.5.52 to avoid [vulnerability](https://github.com/ICanBoogie/Inflector/security/dependabot/1).
24+
25+
26+
327
## v3.0.2
428

529
### New requirements

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG PHP_TAG=7.1-cli-buster
1+
ARG PHP_TAG=7.2-cli-buster
22
FROM php:${PHP_TAG}
33

44
RUN <<-EOF

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ test-coveralls: test-dependencies
2525
@XDEBUG_MODE=coverage $(PHPUNIT) --coverage-clover build/logs/clover.xml
2626

2727
.PHONY: test-container
28-
test-container: test-container-71
28+
test-container: test-container-72
2929

30-
.PHONY: test-container-71
31-
test-container-71:
32-
@-docker-compose run --rm app71 bash
30+
.PHONY: test-container-72
31+
test-container-72:
32+
@-docker-compose run --rm app72 bash
3333
@docker-compose down -v
3434

3535
.PHONY: test-container-84

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@
2929
"sort-packages": true
3030
},
3131
"require": {
32-
"php": ">=7.1",
32+
"php": ">=7.2",
3333
"ext-mbstring": "*"
3434
},
3535
"require-dev": {
3636
"icanboogie/common": "^2.1",
3737
"phpstan/phpstan": "^1.4|^2.0",
38-
"phpunit/phpunit": "^7.5.20|^11.4"
38+
"phpunit/phpunit": "^8.5.22|^11.4"
3939
},
4040
"conflict": {
4141
"icanboogie/common": "<2.0"

docker-compose.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
services:
3-
app71:
3+
app72:
44
build:
55
context: .
66
args:
7-
PHP_TAG: "7.1-cli-buster"
7+
PHP_TAG: "7.2-cli-buster"
88
environment:
99
PHP_IDE_CONFIG: 'serverName=icanboogie-inflector'
10-
PHPUNIT_VERSION: "07"
10+
PHPUNIT_VERSION: "08"
1111
volumes: &vol
1212
- .:/app:delegated
1313
- ~/.composer:/root/.composer:delegated
@@ -16,7 +16,7 @@ services:
1616
build:
1717
context: .
1818
args:
19-
PHP_TAG: "8.4.0RC4-cli-bookworm"
19+
PHP_TAG: "8.4-cli-bookworm"
2020
environment:
2121
PHP_IDE_CONFIG: 'serverName=icanboogie-inflector'
2222
PHPUNIT_VERSION: "11"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/7.5/phpunit.xsd"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/8.5/phpunit.xsd"
44
bootstrap="vendor/autoload.php"
55
executionOrder="depends,defects"
66
beStrictAboutOutputDuringTests="true"

phpunit07.xml renamed to phpunit08.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/7.5/phpunit.xsd"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/8.5/phpunit.xsd"
44
bootstrap="vendor/autoload.php"
55
executionOrder="depends,defects"
66
beStrictAboutOutputDuringTests="true"

0 commit comments

Comments
 (0)