Skip to content

Commit 90535a2

Browse files
committed
chore: drop PHP 7.2 and 7.3
1 parent a32bd4c commit 90535a2

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: ['']
@@ -51,7 +51,7 @@ jobs:
5151
strategy:
5252
fail-fast: false
5353
matrix:
54-
php-version: ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2"]
54+
php-version: ["7.4", "8.0", "8.1", "8.2"]
5555
os: [ubuntu-latest]
5656
experimental: [false]
5757
composer-options: ['']
@@ -82,7 +82,7 @@ jobs:
8282
strategy:
8383
fail-fast: false
8484
matrix:
85-
php-version: ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2"]
85+
php-version: ["7.4", "8.0", "8.1", "8.2"]
8686
os: [ubuntu-latest]
8787
experimental: [false]
8888
composer-options: ['']
@@ -116,7 +116,7 @@ jobs:
116116
strategy:
117117
fail-fast: false
118118
matrix:
119-
php-version: ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2"]
119+
php-version: ["7.4", "8.0", "8.1", "8.2"]
120120
os: [ubuntu-latest]
121121
experimental: [false]
122122
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
- Don't inject `<br>` tags into `<pre>` for `@examples`
1213
- Support `@category` tags on classes and methods

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)