Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4b6abf2

Browse files
Merge pull request #3 from rectorphp/tv-update
2 parents 0675a53 + a11bddb commit 4b6abf2

22 files changed

+213
-3189
lines changed

‎.github/workflows/automated_pull_request.yaml‎

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

‎.github/workflows/code_analysis.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
-
3535
uses: shivammathur/setup-php@v2
3636
with:
37-
php-version: 8.0
37+
php-version: 8.1
3838
coverage: none
3939

4040
- uses: "ramsey/composer-install@v1"

‎.gitignore‎

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

‎bin/console.php‎

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
<?php
22

3-
// decoupled in own "*.php" file, so ECS, Rector and PHPStan works out of the box here
4-
53
declare(strict_types=1);
64

7-
use Rector\PhpParserNodesDocs\HttpKernel\PhpParserNodesDocsKernel;
8-
use Symplify\SymplifyKernel\ValueObject\KernelBootAndApplicationRun;
5+
use Rector\PhpParserNodesDocs\DependencyInjection\ContainerFactory;
6+
use Symfony\Component\Console\Application;
7+
use Symfony\Component\Console\Input\ArgvInput;
8+
use Symfony\Component\Console\Output\ConsoleOutput;
99

1010
require_once __DIR__ . '/../vendor/autoload.php';
1111

12-
$kernelBootAndApplicationRun = new KernelBootAndApplicationRun(PhpParserNodesDocsKernel::class);
13-
$kernelBootAndApplicationRun->run();
12+
$containerFactory = new ContainerFactory();
13+
$container = $containerFactory->create();
14+
15+
/** @var Application $application */
16+
$application = $container->make(Application::class);
17+
18+
$input = new ArgvInput();
19+
$output = new ConsoleOutput();
20+
21+
$exitCode = $application->run($input, $output);
22+
exit($exitCode);

‎composer.json‎

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,22 @@
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",
14+
"webmozart/assert": "^1.11"
1415
},
1516
"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"
17+
"symplify/easy-coding-standard": "^11.5",
18+
"phpstan/phpstan": "^1.10",
19+
"phpunit/phpunit": "^10.2",
20+
"rector/rector": "^0.17.6"
2021
},
2122
"autoload": {
2223
"psr-4": {
@@ -31,6 +32,7 @@
3132
"scripts": {
3233
"check-cs": "vendor/bin/ecs check --ansi",
3334
"fix-cs": "vendor/bin/ecs check --fix --ansi",
34-
"phpstan": "vendor/bin/phpstan analyse --ansi --error-format symplify"
35+
"phpstan": "vendor/bin/phpstan analyse --ansi",
36+
"build": "bin/console dump-nodes"
3537
}
3638
}

‎config/config.php‎

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

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /