Skip to content

Commit b8ece54

Browse files
committed
drop support for long-dead php versions
1 parent e4df246 commit b8ece54

File tree

2 files changed

+57
-59
lines changed

2 files changed

+57
-59
lines changed

.github/workflows/tests.yaml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,19 @@ on:
1010

1111
jobs:
1212
Tests:
13-
runs-on: 'ubuntu-latest'
13+
runs-on: "ubuntu-latest"
1414
strategy:
1515
matrix:
1616
php:
17-
- '7.4'
18-
- '8.0'
19-
- '8.1'
20-
- '8.2'
21-
- '8.3'
22-
- '8.4'
23-
dependencies: ['highest']
17+
- "8.1"
18+
- "8.2"
19+
- "8.3"
20+
- "8.4"
21+
dependencies: ["highest"]
2422
include:
25-
- description: '(lowest)'
26-
php: '7.4'
27-
dependencies: 'lowest'
23+
- description: "(lowest)"
24+
php: "8.1"
25+
dependencies: "lowest"
2826

2927
name: PHP ${{ matrix.php }} ${{ matrix.description }}
3028
steps:
@@ -46,7 +44,7 @@ jobs:
4644
- name: "Upload test coverage"
4745
uses: codecov/codecov-action@v5
4846
with:
49-
files: './coverage.xml'
47+
files: "./coverage.xml"
5048
fail_ci_if_error: true
5149
env:
5250
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

composer.json

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,50 @@
11
{
2-
"name": "thecodingmachine/phpstan-safe-rule",
3-
"description": "A PHPStan rule to detect safety issues. Must be used in conjunction with thecodingmachine/safe",
4-
"type": "phpstan-extension",
5-
"license": "MIT",
6-
"authors": [
7-
{
8-
"name": "David Négrier",
9-
"email": "d.negrier@thecodingmachine.com"
10-
}
11-
],
12-
"require": {
13-
"php": "^7.4 || ^8.0",
14-
"phpstan/phpstan": "^2.0",
15-
"thecodingmachine/safe": "^1.0 || ^2.0 || ^3.0",
16-
"nikic/php-parser": "^5"
2+
"name": "thecodingmachine/phpstan-safe-rule",
3+
"description": "A PHPStan rule to detect safety issues. Must be used in conjunction with thecodingmachine/safe",
4+
"type": "phpstan-extension",
5+
"license": "MIT",
6+
"authors": [
7+
{
8+
"name": "David Négrier",
9+
"email": "d.negrier@thecodingmachine.com"
10+
}
11+
],
12+
"require": {
13+
"php": "^8.1",
14+
"phpstan/phpstan": "^2.0",
15+
"thecodingmachine/safe": "^1.0 || ^2.0 || ^3.0",
16+
"nikic/php-parser": "^5"
17+
},
18+
"require-dev": {
19+
"phpunit/phpunit": "^9.6",
20+
"php-coveralls/php-coveralls": "^2.1",
21+
"squizlabs/php_codesniffer": "^3.4"
22+
},
23+
"autoload": {
24+
"psr-4": {
25+
"TheCodingMachine\\Safe\\PHPStan\\": "src/"
26+
}
27+
},
28+
"autoload-dev": {
29+
"psr-4": {
30+
"TheCodingMachine\\Safe\\PHPStan\\": "tests/"
31+
}
32+
},
33+
"scripts": {
34+
"phpstan": "phpstan analyse -c phpstan.neon --no-progress -vvv",
35+
"cs-fix": "phpcbf",
36+
"cs-check": "phpcs"
37+
},
38+
"extra": {
39+
"branch-alias": {
40+
"dev-master": "2.0-dev"
1741
},
18-
"require-dev": {
19-
"phpunit/phpunit": "^9.6",
20-
"php-coveralls/php-coveralls": "^2.1",
21-
"squizlabs/php_codesniffer": "^3.4"
22-
},
23-
"autoload": {
24-
"psr-4": {
25-
"TheCodingMachine\\Safe\\PHPStan\\": "src/"
26-
}
27-
},
28-
"autoload-dev": {
29-
"psr-4": {
30-
"TheCodingMachine\\Safe\\PHPStan\\": "tests/"
31-
}
32-
},
33-
"scripts": {
34-
"phpstan": "phpstan analyse -c phpstan.neon --no-progress -vvv",
35-
"cs-fix": "phpcbf",
36-
"cs-check": "phpcs"
37-
},
38-
"extra": {
39-
"branch-alias": {
40-
"dev-master": "2.0-dev"
41-
},
42-
"phpstan": {
43-
"includes": [
44-
"phpstan-safe-rule.neon"
45-
]
46-
}
47-
},
48-
"minimum-stability": "dev",
49-
"prefer-stable": true
42+
"phpstan": {
43+
"includes": [
44+
"phpstan-safe-rule.neon"
45+
]
46+
}
47+
},
48+
"minimum-stability": "dev",
49+
"prefer-stable": true
5050
}

0 commit comments

Comments
 (0)