Skip to content

Commit 6bfdd1f

Browse files
committed
bump deps
1 parent 0675a53 commit 6bfdd1f

File tree

5 files changed

+20
-41
lines changed

5 files changed

+20
-41
lines changed

bin/console.php

-7
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,3 @@
44

55
declare(strict_types=1);
66

7-
use Rector\PhpParserNodesDocs\HttpKernel\PhpParserNodesDocsKernel;
8-
use Symplify\SymplifyKernel\ValueObject\KernelBootAndApplicationRun;
9-
10-
require_once __DIR__ . '/../vendor/autoload.php';
11-
12-
$kernelBootAndApplicationRun = new KernelBootAndApplicationRun(PhpParserNodesDocsKernel::class);
13-
$kernelBootAndApplicationRun->run();

composer.json

+13-13
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22
"name": "rector/php-parser-nodes-docs",
33
"license": "MIT",
44
"description": "Generate visual docs for php-parser nodes - the first step to master AST",
5+
"bin": [
6+
"bin/console",
7+
"bin/console.php"
8+
],
59
"require": {
6-
"php": "^8.0",
7-
"symfony/console": "^5.2",
8-
"symfony/dependency-injection": "^5.2",
9-
"symplify/symplify-kernel": "^9.1",
10-
"symplify/smart-file-system": "^9.1",
11-
"symplify/package-builder": "^9.1",
12-
"symplify/console-package-builder": "^9.1",
13-
"nikic/php-parser": "^4.10.4"
10+
"php": "^8.1",
11+
"symfony/console": "^6.3",
12+
"nikic/php-parser": "^4.16",
13+
"illuminate/container": "^10.15"
1414
},
1515
"require-dev": {
16-
"symplify/easy-coding-standard": "^9.1",
17-
"phpstan/phpstan": "^0.12.73",
18-
"phpunit/phpunit": "^9.5",
19-
"symplify/phpstan-extensions": "^9.1"
16+
"symplify/easy-coding-standard": "^11.5",
17+
"phpstan/phpstan": "^1.10",
18+
"phpunit/phpunit": "^10.2",
19+
"rector/rector": "*"
2020
},
2121
"autoload": {
2222
"psr-4": {
@@ -31,6 +31,6 @@
3131
"scripts": {
3232
"check-cs": "vendor/bin/ecs check --ansi",
3333
"fix-cs": "vendor/bin/ecs check --fix --ansi",
34-
"phpstan": "vendor/bin/phpstan analyse --ansi --error-format symplify"
34+
"phpstan": "vendor/bin/phpstan analyse --ansi"
3535
}
3636
}

ecs.php

+6-7
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,18 @@
22

33
declare(strict_types=1);
44

5-
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
6-
use Symplify\EasyCodingStandard\ValueObject\Option;
5+
use Symplify\EasyCodingStandard\Config\ECSConfig;
76
use Symplify\EasyCodingStandard\ValueObject\Set\SetList;
87

9-
return static function (ContainerConfigurator $containerConfigurator): void {
10-
$parameters = $containerConfigurator->parameters();
11-
$parameters->set(Option::PATHS, [
8+
return static function (ECSConfig $ecsConfig): void {
9+
$ecsConfig->paths([
10+
__DIR__ . '/config',
1211
__DIR__ . '/src',
1312
__DIR__ . '/tests',
1413
]);
1514

16-
$parameters->set(Option::SETS, [
17-
// run and fix, one by one
15+
$ecsConfig->sets([
16+
SetList::STRICT,
1817
SetList::COMMON,
1918
SetList::PSR_12,
2019
]);

phpstan.neon

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
1-
includes:
2-
# allows symplify error formatter
3-
- vendor/symplify/phpstan-extensions/config/config.neon
4-
51
parameters:
62
level: max
73

84
paths:
5+
- config
96
- src
107
- tests
118

129
ignoreErrors:
1310
-
1411
message: '#Cannot cast array<string\>\|bool\|string\|null to string#'
1512
path: src/Command/DumpNodesCommand.php
16-
17-
- '#Method Rector\\PhpParserNodesDocs\\NodeCodeSampleProvider\:\:provide\(\) should return array<class\-string<PhpParser\\Node\>, array<int, Rector\\PhpParserNodesDocs\\ValueObject\\NodeCodeSample\>\> but returns array<class\-string, array<int, Rector\\PhpParserNodesDocs\\ValueObject\\NodeCodeSample\>\>#'

tests/NodeInfosFactoryTest.php

-8
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,13 @@
44

55
namespace Rector\PhpParserNodesDocs\Tests;
66

7-
use Rector\PhpParserNodesDocs\HttpKernel\PhpParserNodesDocsKernel;
87
use Rector\PhpParserNodesDocs\NodeInfosFactory;
98
use Symplify\PackageBuilder\Testing\AbstractKernelTestCase;
109

1110
final class NodeInfosFactoryTest extends AbstractKernelTestCase
1211
{
13-
/**
14-
* @var NodeInfosFactory
15-
*/
16-
private $nodeInfosFactory;
17-
1812
protected function setUp(): void
1913
{
20-
$this->bootKernel(PhpParserNodesDocsKernel::class);
21-
2214
$this->nodeInfosFactory = $this->getService(NodeInfosFactory::class);
2315
}
2416

0 commit comments

Comments
 (0)