Skip to content

Commit 092aa44

Browse files
committed
php81 only
1 parent cc9964a commit 092aa44

File tree

8 files changed

+955
-1688
lines changed

8 files changed

+955
-1688
lines changed

.github/workflows/php.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
strategy:
1717
matrix:
18-
php-versions: [ '8.0', '8.1' ]
18+
php-versions: [ '8.1' ]
1919

2020
steps:
2121
- name: Checkout Repository
@@ -48,7 +48,7 @@ jobs:
4848
run: composer crc
4949

5050
- name: Composer Unused
51-
run: composer unuse
51+
run: composer unused
5252

5353
- name: CS Check
5454
run: composer cs-check

composer-unused.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use ComposerUnused\ComposerUnused\Configuration\Configuration;
6+
use ComposerUnused\ComposerUnused\Configuration\NamedFilter;
7+
8+
return static function (Configuration $config): Configuration {
9+
return $config
10+
->addNamedFilter(NamedFilter::fromString('ext-session'));
11+
};

composer.json

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
}
3030
],
3131
"require": {
32-
"php": "^8.0",
32+
"php": "^8.1",
3333
"ext-session": "*",
3434

3535
"symfony/config": "^5.4|^6.0",
@@ -38,23 +38,23 @@
3838

3939
"doctrine/dbal": "^2.10|^3.0",
4040
"doctrine/common": "^2.13|^3.0",
41-
"doctrine/persistence": "^1.3|^2.0",
41+
"doctrine/persistence": "^2.0|^3.0",
4242
"doctrine/orm": "^2.7",
4343
"nesbot/carbon": "^2.41"
4444
},
4545
"require-dev":{
4646
"doctrine/coding-standard": "^9.0",
4747
"roave/security-advisories": "dev-master",
4848
"squizlabs/php_codesniffer": "^3.6",
49-
"phpstan/phpstan": "^1.2",
49+
"phpstan/phpstan": "^1.7",
5050
"phpstan/phpstan-deprecation-rules": "^1.0",
51-
"phpstan/phpstan-phpunit": "^1.0",
52-
"phpstan/phpstan-strict-rules": "^1.0",
53-
"maglnet/composer-require-checker": "^3.6",
51+
"phpstan/phpstan-phpunit": "^1.1",
52+
"phpstan/phpstan-strict-rules": "^1.2",
53+
"maglnet/composer-require-checker": "^4.0",
5454
"phpunit/phpunit": "^9.5",
55-
"symfony/var-dumper": "^5.3",
55+
"symfony/var-dumper": "^6.1",
5656
"dg/bypass-finals": "^1.3",
57-
"icanhazstring/composer-unused": "^0.7"
57+
"icanhazstring/composer-unused": "^0.8"
5858
},
5959
"autoload": {
6060
"psr-4": {
@@ -64,11 +64,11 @@
6464
"scripts": {
6565
"check": [
6666
"@crc",
67-
"@unuse",
67+
"@unused",
6868
"@cs-check",
6969
"@phpstan"
7070
],
71-
"unuse": "composer unused --excludeDir=vendor",
71+
"unused": "vendor/bin/composer-unused",
7272
"phpstan-update-baseline": "phpstan analyse --ansi --generate-baseline phpstan-baseline.neon",
7373
"phpstan": "./vendor/bin/phpstan analyse ./src",
7474
"crc": "./vendor/bin/composer-require-checker --config-file=./composer-require-checker.json",
@@ -77,11 +77,12 @@
7777
"cs-check": "./vendor/bin/phpcs -s"
7878
},
7979
"config": {
80-
"platform": {
81-
"php": "8.0.2"
82-
},
8380
"preferred-install": {
8481
"*": "dist"
82+
},
83+
"allow-plugins": {
84+
"dealerdirect/phpcodesniffer-composer-installer": true,
85+
"icanhazstring/composer-unused": true
8586
}
8687
},
8788
"extra": {

0 commit comments

Comments
 (0)