Skip to content

Commit fbc7ccd

Browse files
committed
chore: drop PHP 7.2 and 7.3
1 parent 5fb0ff2 commit fbc7ccd

File tree

6 files changed

+15
-10
lines changed

6 files changed

+15
-10
lines changed

.github/workflows/lint-and-analyse.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v3
15-
- name: Use php 7.2
15+
- name: Use php 7.4
1616
uses: shivammathur/setup-php@v2
1717
with:
18-
php-version: 7.2
18+
php-version: 7.4
1919
tools: composer:v2
2020
- name: Validate composer.json and composer.lock
2121
run: composer validate

.github/workflows/tests.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
continue-on-error: ${{ matrix.experimental }}
1515
strategy:
1616
matrix:
17-
php-version: ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2"]
17+
php-version: ["7.4", "8.0", "8.1", "8.2"]
1818
os: [ubuntu-latest]
1919
experimental: [false]
2020
composer-options: ['']
@@ -52,7 +52,7 @@ jobs:
5252
strategy:
5353
fail-fast: false
5454
matrix:
55-
php-version: ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2"]
55+
php-version: ["7.4", "8.0", "8.1", "8.2"]
5656
os: [ubuntu-latest]
5757
experimental: [false]
5858
composer-options: ['']
@@ -83,7 +83,7 @@ jobs:
8383
strategy:
8484
fail-fast: false
8585
matrix:
86-
php-version: ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2"]
86+
php-version: ["7.4", "8.0", "8.1", "8.2"]
8787
os: [ubuntu-latest]
8888
experimental: [false]
8989
composer-options: ['']
@@ -118,7 +118,7 @@ jobs:
118118
strategy:
119119
fail-fast: false
120120
matrix:
121-
php-version: ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2"]
121+
php-version: ["7.4", "8.0", "8.1", "8.2"]
122122
os: [ubuntu-latest]
123123
experimental: [false]
124124
composer-options: ['']

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased] - yyyy-mm-dd
99

10+
- Require PHP `7.4.26`
1011
- Fixed a JS null pointer error on Doctum.cleanSearchQuery
1112

1213
## [5.5.1] - 2022-02-17

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Installation
2323

2424
.. caution::
2525

26-
Doctum requires **PHP 7.2.20** or later.
26+
Doctum requires **PHP 7.4.26** or later.
2727

2828
Get Doctum as a `phar file`_:
2929

bin/doctum-binary.php

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
<?php
22

3-
if (PHP_VERSION_ID < 70220) {// 70 2 20
4-
echo 'You need to use PHP 7.2.20 or above to run Doctum.' . PHP_EOL;
3+
if (PHP_VERSION_ID < 70426) {// 70 4 26
4+
echo 'You need to use PHP 7.4.26 or above to run Doctum.' . PHP_EOL;
5+
if (PHP_MAJOR_VERSION === 7 && PHP_MINOR_VERSION === 4 && PHP_RELEASE_VERSION < 26) {
6+
echo 'We decided not having an updated PHP 7.4 was not healthy and has security issues.' . PHP_EOL;
7+
echo 'You can discuss about that with us on: https://github.com/code-lts/doctum/discussions.' . PHP_EOL;
8+
}
59
echo 'Current detected version: (' . PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION . ') (' . PHP_VERSION_ID . ').' . PHP_EOL;
610
exit(1);
711
}

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
}
3636
],
3737
"require": {
38-
"php": "^7.2.20 || ^8.0",
38+
"php": "^7.4.26 || ^8.0",
3939
"twig/twig": "^3.0",
4040
"nikic/php-parser": "^4.10",
4141
"symfony/console": "~3.4|~4.3|^5|^6",

0 commit comments

Comments
 (0)