Skip to content

Commit b95ca04

Browse files
committed
build: drop php 7.3
1 parent 0b7b61d commit b95ca04

6 files changed

Lines changed: 22 additions & 21 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,6 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
include:
13-
- operating-system: 'ubuntu-latest'
14-
php-version: '7.3'
15-
job-description: 'Ubuntu; PHP 7.3; latest-deps'
16-
17-
- operating-system: 'ubuntu-latest'
18-
php-version: '7.3'
19-
composer-flags: '--prefer-lowest'
20-
job-description: 'Ubuntu; PHP 7.3; lowest-deps'
21-
2213
- operating-system: 'ubuntu-latest'
2314
php-version: '7.4'
2415
job-description: 'Ubuntu; PHP 7.4; latest-deps'
@@ -46,13 +37,22 @@ jobs:
4637
composer-flags: '--prefer-lowest'
4738
job-description: 'Ubuntu; PHP 8.1; lowest-deps'
4839

40+
- operating-system: 'ubuntu-latest'
41+
php-version: '8.2'
42+
job-description: 'Ubuntu; PHP 8.2; latest-deps'
43+
44+
- operating-system: 'ubuntu-latest'
45+
php-version: '8.2'
46+
composer-flags: '--prefer-lowest'
47+
job-description: 'Ubuntu; PHP 8.2; lowest-deps'
48+
4949
- operating-system: 'windows-latest'
50-
php-version: '8.1'
51-
job-description: 'Windows; PHP 8.1; latest-deps'
50+
php-version: '8.2'
51+
job-description: 'Windows; PHP 8.2; latest-deps'
5252

5353
- operating-system: 'macos-latest'
54-
php-version: '8.1'
55-
job-description: 'MacOS; PHP 8.1; latest-deps'
54+
php-version: '8.2'
55+
job-description: 'MacOS; PHP 8.2; latest-deps'
5656

5757

5858
name: ${{ matrix.job-description }}
@@ -66,7 +66,7 @@ jobs:
6666
git config --global core.eol lf
6767
6868
- name: Checkout code
69-
uses: actions/checkout@v2
69+
uses: actions/checkout@v3
7070

7171
- name: Setup PHP
7272
uses: shivammathur/setup-php@v2

.php-cs-fixer.dist.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
return (new PhpCsFixer\Config())
88
->setRules([
99
'@Symfony' => true,
10-
'@PHP73Migration' => true,
10+
'@PHP74Migration' => true,
1111

1212
'combine_consecutive_issets' => true,
1313
'combine_consecutive_unsets' => true,

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ print_r($resultCheckFile);
1919

2020
### Requirements:
2121

22-
- PHP >= 7.3
22+
- PHP >= 7.4
2323

2424
### Installation:
2525
```bash

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "PHP code syntax checker.",
55
"license": "LGPL-3.0-or-later",
66
"require": {
7-
"php": ">=7.3",
7+
"php": ">=7.4",
88
"symfony/process": "^4.4||^5.0||^6.0"
99
},
1010
"require-dev": {

src/Php.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ class Php
99
// UNIX /usr/bin/php
1010
// BSD /usr/local/bin/php
1111
// Win C:/php/php.exe
12-
private $cli = 'php';
13-
private $tempDirectory;
14-
private $sourceCharset;
15-
private $resultCharset = 'UTF-8';
12+
private string $cli = 'php';
13+
private string $tempDirectory;
14+
private ?string $sourceCharset = null;
15+
private string $resultCharset = 'UTF-8';
1616

1717
public function __construct()
1818
{

tests/PhpTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
/**
99
* @internal
10+
*
1011
* @coversNothing
1112
*/
1213
class PhpTest extends TestCase

0 commit comments

Comments
 (0)