Skip to content

Commit ab2e11f

Browse files
authored
Cleanup some leftover dependecies (#1602)
1 parent a122325 commit ab2e11f

File tree

4 files changed

+9
-50
lines changed

4 files changed

+9
-50
lines changed

.github/workflows/static-analysis.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
run: composer update --no-progress --no-interaction --prefer-dist
2525

2626
- name: Run script
27-
run: composer phpcs
27+
run: vendor/bin/php-cs-fixer fix --verbose --diff --dry-run
2828

2929
phpstan:
3030
name: PHPStan
@@ -42,7 +42,7 @@ jobs:
4242
run: composer update --no-progress --no-interaction --prefer-dist
4343

4444
- name: Run script
45-
run: composer phpstan
45+
run: vendor/bin/phpstan analyse
4646

4747
psalm:
4848
name: Psalm
@@ -62,4 +62,4 @@ jobs:
6262
run: composer update --no-progress --no-interaction --prefer-dist
6363

6464
- name: Run script
65-
run: composer psalm
65+
run: vendor/bin/psalm

Makefile

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

composer.json

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,10 @@
3232
"require-dev": {
3333
"friendsofphp/php-cs-fixer": "^3.4",
3434
"guzzlehttp/promises": "^1.0|^2.0",
35-
"http-interop/http-factory-guzzle": "^1.0",
35+
"guzzlehttp/psr7": "^1.8.4|^2.1.1",
3636
"monolog/monolog": "^1.6|^2.0|^3.0",
37-
"nikic/php-parser": "^4.10.3",
38-
"php-http/mock-client": "^1.3",
3937
"phpbench/phpbench": "^1.0",
40-
"phpstan/extension-installer": "^1.0",
4138
"phpstan/phpstan": "^1.3",
42-
"phpstan/phpstan-phpunit": "^1.0",
4339
"phpunit/phpunit": "^8.5.14|^9.4",
4440
"symfony/phpunit-bridge": "^5.2|^6.0",
4541
"vimeo/psalm": "^4.17"
@@ -48,7 +44,6 @@
4844
"monolog/monolog": "Allow sending log messages to Sentry by using the included Monolog handler."
4945
},
5046
"conflict": {
51-
"php-http/client-common": "1.8.0",
5247
"raven/raven": "*"
5348
},
5449
"autoload": {
@@ -68,9 +63,12 @@
6863
"tests": [
6964
"vendor/bin/phpunit --verbose"
7065
],
71-
"phpcs": [
66+
"cs-check": [
7267
"vendor/bin/php-cs-fixer fix --verbose --diff --dry-run"
7368
],
69+
"cs-fix": [
70+
"vendor/bin/php-cs-fixer fix --verbose --diff"
71+
],
7472
"phpstan": [
7573
"vendor/bin/phpstan analyse"
7674
],
@@ -79,12 +77,7 @@
7977
]
8078
},
8179
"config": {
82-
"sort-packages": true,
83-
"allow-plugins": {
84-
"composer/package-versions-deprecated": true,
85-
"php-http/discovery": false,
86-
"phpstan/extension-installer": true
87-
}
80+
"sort-packages": true
8881
},
8982
"prefer-stable": true
9083
}

tests/bootstrap.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
declare(strict_types=1);
44

5-
use Http\Discovery\ClassDiscovery;
6-
use Http\Discovery\Strategy\MockClientStrategy;
75
use Sentry\Breadcrumb;
86
use Sentry\Event;
97
use Sentry\Tracing\Span;
@@ -12,8 +10,6 @@
1210

1311
require_once __DIR__ . '/../vendor/autoload.php';
1412

15-
ClassDiscovery::appendStrategy(MockClientStrategy::class);
16-
1713
// According to the Symfony documentation the proper way to register the mocked
1814
// functions for a certain class would be to configure the listener in the
1915
// phpunit.xml file, however in our case it doesn't work because PHPUnit loads

0 commit comments

Comments
 (0)