Skip to content

Commit 68ee5ac

Browse files
committed
UPDATE PHP range specification
1 parent 49af85e commit 68ee5ac

2 files changed

Lines changed: 29 additions & 21 deletions

File tree

composer.json

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
{
22
"name": "dave-liddament/php-language-extensions",
33
"description": "Attributes for extending the PHP language, using static analysis to enforce new language constructs",
4-
"keywords": ["static analysis", "package attribute", "friend attribute", "sealed attribute"],
5-
"type" : "library",
4+
"keywords": [
5+
"static analysis",
6+
"package attribute",
7+
"friend attribute",
8+
"sealed attribute"
9+
],
10+
"type": "library",
611
"minimum-stability": "stable",
712
"license": "MIT",
813
"authors": [
@@ -13,11 +18,11 @@
1318
],
1419
"autoload": {
1520
"psr-4": {
16-
"DaveLiddament\\PhpLanguageExtensions\\" : "src/"
21+
"DaveLiddament\\PhpLanguageExtensions\\": "src/"
1722
}
1823
},
19-
"require" : {
20-
"php": ">=8.0 <8.3"
24+
"require": {
25+
"php": "^8.0 || ^8.1 || ^8.2"
2126
},
2227
"require-dev": {
2328
"phpstan/phpstan": "^1.5",
@@ -26,18 +31,21 @@
2631
"vimeo/psalm": "^4.22"
2732
},
2833
"scripts": {
29-
"composer-validate" : "@composer validate --no-check-all --strict",
30-
"cs-fix" : "php-cs-fixer fix",
31-
"cs" : "php-cs-fixer fix --dry-run -v",
32-
"phpstan" : "phpstan analyse",
33-
"psalm" : "psalm",
34-
"lint" : "parallel-lint src",
35-
"ci" : [
36-
"@composer-validate",
37-
"@lint",
38-
"@cs",
39-
"@phpstan",
40-
"@psalm"
41-
]
42-
}
34+
"composer-validate": "@composer validate --no-check-all --strict",
35+
"cs-fix": "php-cs-fixer fix",
36+
"cs": [
37+
"@putenv @PHP_CS_FIXER_IGNORE_ENV=1",
38+
"php-cs-fixer fix --dry-run -v"
39+
],
40+
"phpstan": "phpstan analyse",
41+
"psalm": "psalm",
42+
"lint": "parallel-lint src",
43+
"ci": [
44+
"@composer-validate",
45+
"@lint",
46+
"@cs",
47+
"@phpstan",
48+
"@psalm"
49+
]
50+
}
4351
}

composer.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)