Skip to content

Commit

Permalink
release PHP 7.2 downgraded
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Mar 18, 2024
1 parent 6daee49 commit b2829ee
Show file tree
Hide file tree
Showing 546 changed files with 57,173 additions and 1,468 deletions.
9 changes: 0 additions & 9 deletions .editorconfig

This file was deleted.

File renamed without changes.
4 changes: 0 additions & 4 deletions .gitignore

This file was deleted.

3 changes: 2 additions & 1 deletion bin/rule-doc-generator
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env php
<?php
<?php
namespace RuleDocGenerator202403;

require __DIR__ . '/rule-doc-generator.php';
15 changes: 5 additions & 10 deletions bin/rule-doc-generator.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

declare(strict_types=1);
declare (strict_types=1);
namespace RuleDocGenerator202403;

// 1. autoload
use Symplify\RuleDocGenerator\DependencyInjection\ContainerFactory;

$possibleAutoloadPaths = [
// after split package
__DIR__ . '/../vendor/autoload.php',
Expand All @@ -13,24 +13,19 @@
// monorepo
__DIR__ . '/../../../vendor/autoload.php',
];

foreach ($possibleAutoloadPaths as $possibleAutoloadPath) {
if (file_exists($possibleAutoloadPath)) {
if (\file_exists($possibleAutoloadPath)) {
require_once $possibleAutoloadPath;
break;
}
}

// load scoped classes
$scoperAutoloadFilepath = __DIR__ . '/../vendor/scoper-autoload.php';
if (file_exists($scoperAutoloadFilepath)) {
if (\file_exists($scoperAutoloadFilepath)) {
require_once $scoperAutoloadFilepath;
}

$containerFactory = new ContainerFactory();
$container = $containerFactory->create();


$application = $container->make(\Symfony\Component\Console\Application::class);
$application = $container->make(\RuleDocGenerator202403\Symfony\Component\Console\Application::class);
$exitCode = $application->run();
exit($exitCode);
52 changes: 0 additions & 52 deletions build/build-scoped.sh

This file was deleted.

15 changes: 0 additions & 15 deletions build/rector-downgrade-php-72.php

This file was deleted.

3 changes: 0 additions & 3 deletions build/target-repository/.github/FUNDING.yml

This file was deleted.

11 changes: 0 additions & 11 deletions build/target-repository/composer.json

This file was deleted.

44 changes: 4 additions & 40 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,46 +2,10 @@
"name": "symplify/rule-doc-generator",
"description": "Documentation generator for coding standard or static analysis rules",
"license": "MIT",
"bin": [
"bin/rule-doc-generator"
],
"require": {
"php": ">=8.2",
"symfony/console": "^6.4",
"nette/robot-loader": "^3.4|^4.0",
"symplify/rule-doc-generator-contracts": "^11.1",
"nette/utils": "^3.2|^4.0",
"sebastian/diff": "^5.1|^6.0",
"illuminate/container": "^10.39|^11.0",
"webmozart/assert": "^1.11",
"symfony/yaml": "^6.4",
"symfony/filesystem": "^6.4"
},
"require-dev": {
"phpunit/phpunit": "^11.0",
"phpstan/phpstan": "^1.10.56",
"symplify/easy-coding-standard": "^12.0",
"rector/rector": "dev-main",
"tracy/tracy": "^2.10",
"tomasvotruba/class-leak": "^0.2"
},
"autoload": {
"psr-4": {
"Symplify\\RuleDocGenerator\\": "src"
}
"php": ">=7.2"
},
"autoload-dev": {
"psr-4": {
"Symplify\\RuleDocGenerator\\Tests\\": "tests"
},
"classmap": [
"stubs"
]
},
"scripts": {
"phpstan": "vendor/bin/phpstan analyse --ansi",
"check-cs": "vendor/bin/ecs check --ansi",
"fix-cs": "vendor/bin/ecs check --fix --ansi",
"rector": "vendor/bin/rector process --dry-run --ansi"
}
"bin": [
"bin/rule-doc-generator"
]
}
Loading

0 comments on commit b2829ee

Please sign in to comment.