Skip to content

Commit 3b25653

Browse files
committed
chore: Make this branch PHP 7.1 only
1 parent 2d220f7 commit 3b25653

File tree

4 files changed

+8
-14
lines changed

4 files changed

+8
-14
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ jobs:
3333
runs-on: ubuntu-latest
3434
steps:
3535
- uses: actions/checkout@v2
36-
- name: Use php 7.4
36+
- name: Use php 7.1
3737
uses: shivammathur/setup-php@v2
3838
with:
39-
php-version: 7.4
39+
php-version: 7.1
4040
tools: composer:v2
4141
- name: Cache module
4242
uses: actions/cache@v2

.github/workflows/tests.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,10 @@ jobs:
1414
continue-on-error: ${{ matrix.experimental }}
1515
strategy:
1616
matrix:
17-
php-version: ["7.1", "7.2", "7.3", "7.4", "8.0"]
17+
php-version: ["7.1"]
1818
os: [ubuntu-latest]
1919
experimental: [false]
2020
composer-options: ['']
21-
include:
22-
- { php-version: '8.1', experimental: true, os: ubuntu-latest, composer-options: '--ignore-platform-reqs' }
2321
steps:
2422
- uses: actions/checkout@v2
2523
- name: Use php ${{ matrix.php-version }}
@@ -47,12 +45,10 @@ jobs:
4745
strategy:
4846
fail-fast: false
4947
matrix:
50-
php-version: ["7.1", "7.2", "7.3", "7.4", "8.0"]
48+
php-version: ["7.1"]
5149
os: [ubuntu-latest]
5250
experimental: [false]
5351
composer-options: ['']
54-
include:
55-
- { php-version: '8.1', experimental: true, os: ubuntu-latest, composer-options: '--ignore-platform-reqs' }
5652
steps:
5753
- uses: actions/checkout@v2
5854
- name: Use php ${{ matrix.php-version }}
@@ -78,12 +74,10 @@ jobs:
7874
strategy:
7975
fail-fast: false
8076
matrix:
81-
php-version: ["7.1", "7.2", "7.3", "7.4", "8.0"]
77+
php-version: ["7.1"]
8278
os: [ubuntu-latest]
8379
experimental: [true]
8480
composer-options: ['']
85-
include:
86-
- { php-version: '8.1', experimental: true, os: ubuntu-latest, composer-options: '--ignore-platform-reqs' }
8781
steps:
8882
- uses: actions/checkout@v2
8983
- name: Use php ${{ matrix.php-version }}

bin/doctum-binary.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

3-
if (PHP_MAJOR_VERSION <= 7 && PHP_MINOR_VERSION < 1) {
4-
echo 'You need to use PHP 7.1 or above to run Doctum.' . PHP_EOL;
3+
if (PHP_MAJOR_VERSION <= 7 && PHP_MINOR_VERSION !== 1) {
4+
echo 'You need to use PHP 7.1 to run this LTS version of Doctum. Please upgrade to 5.4 series to use a newer PHP version.' . PHP_EOL;
55
echo 'Current detected version: (' . PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION . ') (' . PHP_VERSION_ID . ').' . PHP_EOL;
66
exit(1);
77
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
}
3636
],
3737
"require": {
38-
"php": "^7.1.3 || ^8.0",
38+
"php": ">=7.1.3 <7.2.0",
3939
"twig/twig": "~2.12",
4040
"nikic/php-parser": "~4.6",
4141
"symfony/console": "~3.4|~4.3|~5.1|~5.2",

0 commit comments

Comments
 (0)