Skip to content

Commit

Permalink
chore: drop PHP 7.2 and 7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes committed Nov 12, 2022
1 parent 5fb0ff2 commit fbc7ccd
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint-and-analyse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use php 7.2
- name: Use php 7.4
uses: shivammathur/setup-php@v2
with:
php-version: 7.2
php-version: 7.4
tools: composer:v2
- name: Validate composer.json and composer.lock
run: composer validate
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
php-version: ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2"]
php-version: ["7.4", "8.0", "8.1", "8.2"]
os: [ubuntu-latest]
experimental: [false]
composer-options: ['']
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2"]
php-version: ["7.4", "8.0", "8.1", "8.2"]
os: [ubuntu-latest]
experimental: [false]
composer-options: ['']
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2"]
php-version: ["7.4", "8.0", "8.1", "8.2"]
os: [ubuntu-latest]
experimental: [false]
composer-options: ['']
Expand Down Expand Up @@ -118,7 +118,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2"]
php-version: ["7.4", "8.0", "8.1", "8.2"]
os: [ubuntu-latest]
experimental: [false]
composer-options: ['']
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased] - yyyy-mm-dd

- Require PHP `7.4.26`
- Fixed a JS null pointer error on Doctum.cleanSearchQuery

## [5.5.1] - 2022-02-17
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Installation

.. caution::

Doctum requires **PHP 7.2.20** or later.
Doctum requires **PHP 7.4.26** or later.

Get Doctum as a `phar file`_:

Expand Down
8 changes: 6 additions & 2 deletions bin/doctum-binary.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<?php

if (PHP_VERSION_ID < 70220) {// 70 2 20
echo 'You need to use PHP 7.2.20 or above to run Doctum.' . PHP_EOL;
if (PHP_VERSION_ID < 70426) {// 70 4 26
echo 'You need to use PHP 7.4.26 or above to run Doctum.' . PHP_EOL;
if (PHP_MAJOR_VERSION === 7 && PHP_MINOR_VERSION === 4 && PHP_RELEASE_VERSION < 26) {
echo 'We decided not having an updated PHP 7.4 was not healthy and has security issues.' . PHP_EOL;
echo 'You can discuss about that with us on: https://github.com/code-lts/doctum/discussions.' . PHP_EOL;
}
echo 'Current detected version: (' . PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION . ') (' . PHP_VERSION_ID . ').' . PHP_EOL;
exit(1);
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
}
],
"require": {
"php": "^7.2.20 || ^8.0",
"php": "^7.4.26 || ^8.0",
"twig/twig": "^3.0",
"nikic/php-parser": "^4.10",
"symfony/console": "~3.4|~4.3|^5|^6",
Expand Down

0 comments on commit fbc7ccd

Please sign in to comment.