Skip to content

Commit a6793f5

Browse files
committed
update dependencies
1 parent a0817ce commit a6793f5

25 files changed

+5060
-209
lines changed

.github/workflows/php.yml

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

1616
strategy:
1717
matrix:
18-
php-versions: ['8.2', '8.3']
19-
dependencies: [ 'locked', 'latest' ]
18+
php-versions: ['8.4', '8.5']
19+
dependencies: [ 'locked', 'latest', 'lowest' ]
2020

2121
steps:
22-
- uses: actions/checkout@v2
22+
- uses: actions/checkout@v4
2323

2424
- name: Install PHP
2525
uses: shivammathur/setup-php@v2
@@ -30,10 +30,10 @@ jobs:
3030
run: composer validate --strict -n
3131

3232
- name: Install Composer dependencies
33-
uses: ramsey/composer-install@v2
33+
uses: ramsey/composer-install@v3
3434
with:
3535
dependency-versions: ${{ matrix.dependencies }}
36-
composer-options: --prefer-dist
36+
composer-options: --prefer-dist --no-suggest --no-scripts
3737

3838
- name: Run Check
3939
run: composer check

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
.phpunit.cache/
2-
composer.lock
32
vendor/

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015-2016 Shapecode, Nikita Loges
3+
Copyright (c) 2015-2026 Shapecode, Nikita Loges
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

composer-dependency-analyser.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use ShipMonk\ComposerDependencyAnalyser\Config\Configuration;
6+
use ShipMonk\ComposerDependencyAnalyser\Config\ErrorType;
7+
8+
return new Configuration()
9+
// Adjusting scanned paths
10+
->addPathToScan(__DIR__ . '/src', false)
11+
->addPathToScan(__DIR__ . '/tests', true)
12+
->ignoreErrorsOnPackage('shapecode/twig-string-loader', [ErrorType::DEV_DEPENDENCY_IN_PROD]);

composer-require-checker.json

Lines changed: 0 additions & 20 deletions
This file was deleted.

composer-unused.php

Lines changed: 0 additions & 12 deletions
This file was deleted.

composer.json

Lines changed: 24 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -28,30 +28,29 @@
2828
}
2929
],
3030
"require": {
31-
"php": "^8.2",
32-
"symfony/framework-bundle": "^6.4 || ^7.0",
33-
"symfony/config": "^6.4 || ^7.0",
34-
"symfony/http-kernel": "^6.4 || ^7.0",
35-
"symfony/dependency-injection": "^6.4 || ^7.0",
36-
"symfony/event-dispatcher": "^6.4 || ^7.0",
37-
"symfony/event-dispatcher-contracts": "^2.0 || ^3.0",
38-
"symfony/http-foundation": "^6.4 || ^7.0",
39-
"symfony/yaml": "^6.4 || ^7.0",
40-
"twig/twig": "^3.8"
31+
"php": "^8.4",
32+
"symfony/config": "^7.4 || ^8.0",
33+
"symfony/http-kernel": "^7.4 || ^8.0",
34+
"symfony/dependency-injection": "^7.4 || ^8.0",
35+
"symfony/event-dispatcher": "^7.4 || ^8.0",
36+
"symfony/event-dispatcher-contracts": "^3.6",
37+
"symfony/http-foundation": "^7.4 || ^8.0",
38+
"symfony/service-contracts": "^3.6",
39+
"twig/twig": "^3.22"
4140
},
4241
"require-dev": {
43-
"doctrine/coding-standard": "^12.0",
42+
"doctrine/coding-standard": "^14.0",
4443
"roave/security-advisories": "dev-master",
45-
"squizlabs/php_codesniffer": "^3.7",
46-
"phpstan/phpstan": "^1.10",
47-
"phpstan/phpstan-deprecation-rules": "^1.1",
48-
"phpstan/phpstan-phpunit": "^1.3",
49-
"phpstan/phpstan-strict-rules": "^1.5",
50-
"maglnet/composer-require-checker": "^4.7",
51-
"phpunit/phpunit": "^10.5",
52-
"symfony/var-dumper": "^7.0",
53-
"dg/bypass-finals": "^1.5",
54-
"icanhazstring/composer-unused": "^0.8"
44+
"squizlabs/php_codesniffer": "^4.0",
45+
"phpstan/phpstan": "^2.1",
46+
"phpstan/phpstan-deprecation-rules": "^2.0",
47+
"phpstan/phpstan-phpunit": "^2.0",
48+
"phpstan/phpstan-strict-rules": "^2.0",
49+
"phpunit/phpunit": "^12.5",
50+
"symfony/var-dumper": "^8.0",
51+
"dg/bypass-finals": "^1.9",
52+
"shipmonk/composer-dependency-analyser": "^1.8.4",
53+
"shapecode/twig-string-loader": "^2.0"
5554
},
5655
"autoload": {
5756
"psr-4": {
@@ -65,27 +64,22 @@
6564
},
6665
"scripts": {
6766
"check": [
68-
"@crc",
69-
"@unused",
67+
"@cda",
7068
"@cs-check",
7169
"@phpstan",
7270
"@phpunit"
7371
],
74-
"unused": "vendor/bin/composer-unused",
75-
"phpstan": "./vendor/bin/phpstan analyse ./src",
72+
"phpstan": "./vendor/bin/phpstan analyse",
73+
"cda": "vendor/bin/composer-dependency-analyser --config=./composer-dependency-analyser.php",
7674
"phpstan-update-baseline": "phpstan analyse --ansi --generate-baseline phpstan-baseline.neon",
77-
"crc": "./vendor/bin/composer-require-checker --config-file=./composer-require-checker.json",
7875
"phpunit": "./vendor/bin/phpunit",
7976
"cs-fix": "./vendor/bin/phpcbf",
8077
"cs-check": "./vendor/bin/phpcs -s"
8178
},
8279
"extra": {
8380
"branch-alias": {
8481
"dev-master": "5.0-dev"
85-
},
86-
"unused": [
87-
"symfony/framework-bundle"
88-
]
82+
}
8983
},
9084
"minimum-stability": "dev",
9185
"prefer-stable": true,

0 commit comments

Comments
 (0)