Skip to content

Commit 37f8753

Browse files
committed
Drop PHP 7.4, PHP 8.0
Symfony dependencies you got me..
1 parent a957c16 commit 37f8753

File tree

7 files changed

+21
-28
lines changed

7 files changed

+21
-28
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4
15-
- name: Use php 7.4
15+
- name: Use php 8.1
1616
uses: shivammathur/setup-php@v2
1717
with:
18-
php-version: 7.4
18+
php-version: 8.1
1919
- name: Validate composer.json and composer.lock
2020
run: composer validate
2121
- name: Get Composer Cache Directory
@@ -37,10 +37,10 @@ jobs:
3737
runs-on: ubuntu-latest
3838
steps:
3939
- uses: actions/checkout@v4
40-
- name: Use php 7.4
40+
- name: Use php 8.1
4141
uses: shivammathur/setup-php@v2
4242
with:
43-
php-version: 7.4
43+
php-version: 8.1
4444
- name: Get Composer Cache Directory
4545
id: composer-cache
4646
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

.github/workflows/tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
php-version: ["7.4", "8.0", "8.1", "8.2", "8.3", "8.4"]
18+
php-version: ["8.1", "8.2", "8.3", "8.4"]
1919
os: [ubuntu-latest]
2020
experimental: [false]
2121
composer-options: ['', '--prefer-lowest']
@@ -54,7 +54,7 @@ jobs:
5454
strategy:
5555
fail-fast: false
5656
matrix:
57-
php-version: ["7.4", "8.0", "8.1", "8.2", "8.3", "8.4"]
57+
php-version: ["8.1", "8.2", "8.3", "8.4"]
5858
os: [ubuntu-latest]
5959
experimental: [false]
6060
composer-options: ['', '--prefer-lowest']
@@ -86,7 +86,7 @@ jobs:
8686
strategy:
8787
fail-fast: false
8888
matrix:
89-
php-version: ["7.4", "8.0", "8.1", "8.2", "8.3", "8.4"]
89+
php-version: ["8.1", "8.2", "8.3", "8.4"]
9090
os: [ubuntu-latest]
9191
experimental: [false]
9292
composer-options: ['', '--prefer-lowest']
@@ -120,7 +120,7 @@ jobs:
120120
strategy:
121121
fail-fast: false
122122
matrix:
123-
php-version: ["7.4", "8.0", "8.1", "8.2", "8.3", "8.4"]
123+
php-version: ["8.1", "8.2", "8.3", "8.4"]
124124
os: [ubuntu-latest]
125125
experimental: [false]
126126
composer-options: ['', '--prefer-lowest']

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
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+
- Drop PHP 7.4, PHP 8.0
1011
- Attempt to reload the current page in a newly-selected version
1112
- Support PHPUnit 10, 11 and 12
1213
- Drop PHPUnit 7 and 8

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_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 < 80100) {// 80 1 00
4+
echo 'You need to use PHP 8.1 or above to run Doctum.' . 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: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,18 @@
3535
}
3636
],
3737
"require": {
38-
"php": "^7.4 || ^8.0",
39-
"twig/twig": "^3.11.3",
38+
"php": "^8.1",
39+
"twig/twig": "^3.20",
4040
"nikic/php-parser": "^5.4",
41-
"symfony/console": "^5.4.40||^6||^7",
42-
"symfony/finder": "^5.4.40||^6||^7",
43-
"symfony/filesystem": "^5.4.40||^6||^7",
44-
"symfony/yaml": "^5.4.40||^6||^7",
45-
"symfony/process": "^5.4.40||^6||^7",
41+
"symfony/console": "^6||^7",
42+
"symfony/finder": "^6||^7",
43+
"symfony/filesystem": "^6||^7",
44+
"symfony/yaml": "^6||^7",
45+
"symfony/process": "^6||^7",
4646
"phpdocumentor/reflection-docblock": "~5.3",
4747
"phpdocumentor/type-resolver": "1.6.*",
48-
"wdes/php-i18n-l10n": "^4.0",
49-
"code-lts/cli-tools": "^1.5",
48+
"wdes/php-i18n-l10n": "^4.1",
49+
"code-lts/cli-tools": "^1.6",
5050
"erusev/parsedown": "^1.7.4"
5151
},
5252
"scripts": {
@@ -56,7 +56,7 @@
5656
"phpcbf": "@php ./vendor/bin/phpcbf"
5757
},
5858
"require-dev": {
59-
"phpunit/phpunit": "^9 || ^10 || ^11 || ^12",
59+
"phpunit/phpunit": "^10 || ^11 || ^12",
6060
"phpstan/phpstan": "^2.1.4",
6161
"wdes/coding-standard": "^3.3.2",
6262
"phpstan/phpstan-phpunit": "^2.0.4"

src/ErrorHandler.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@ public function handle($level, $message, $file = 'unknown', $line = 0, $context
4545
*/
4646
$isSilenced = ! (error_reporting() & $level);
4747

48-
if (PHP_VERSION_ID < 80000) {
49-
$isSilenced = error_reporting() == 0;
50-
}
51-
5248
if (! $isSilenced) {
5349
throw new \ErrorException(sprintf('%s: %s in %s line %d', self::ERROR_LEVELS[$level] ?? $level, $message, $file, $line));
5450
}

tests/Renderer/DiffTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ public function testIsPhpClass(): void
4242
$this->assertTrue($diff->isAlreadyRendered());
4343
$this->assertFileExists($file);
4444
unlink($file);
45-
if (PHP_VERSION_ID < 70300) {
46-
$this->assertFileNotExists($file);
47-
return;
48-
}
4945
$this->assertFileDoesNotExist($file);
5046
}
5147

0 commit comments

Comments
 (0)