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 Aug 8, 2024
1 parent 17fa911 commit 34f5f62
Show file tree
Hide file tree
Showing 562 changed files with 58,254 additions and 1,527 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 RuleDocGenerator202408;

require __DIR__ . '/rule-doc-generator.php';
16 changes: 5 additions & 11 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 RuleDocGenerator202408;

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

$possibleAutoloadPaths = [
// after split package
__DIR__ . '/../vendor/autoload.php',
Expand All @@ -13,29 +13,23 @@
// 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)) {
require_once $scoperAutoloadFilepath;

// tap into project autoload
if (file_exists(__DIR__ . '/../../../autoload.php')) {
if (\file_exists(__DIR__ . '/../../../autoload.php')) {
require_once __DIR__ . '/../../../autoload.php';
}
}

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


$application = $container->make(\Symfony\Component\Console\Application::class);
$application = $container->make(\RuleDocGenerator202408\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.

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

This file was deleted.

37 changes: 3 additions & 34 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,46 +2,15 @@
"name": "symplify/rule-doc-generator",
"description": "Documentation generator for coding standard or static analysis rules",
"license": "MIT",
"require": {
"php": ">=7.2"
},
"bin": [
"bin/rule-doc-generator"
],
"require": {
"php": ">=8.2",
"symfony/console": "^6.4",
"nette/robot-loader": "^4.0",
"symplify/rule-doc-generator-contracts": "^11.1",
"nette/utils": "^4.0",
"sebastian/diff": "^6.0",
"illuminate/container": "^11.0",
"webmozart/assert": "^1.11",
"symfony/yaml": "^7.0",
"symfony/filesystem": "^7.0"
},
"require-dev": {
"phpunit/phpunit": "^11.0",
"phpstan/phpstan": "^1.11",
"symplify/easy-coding-standard": "^12.3",
"rector/rector": "^1.1",
"tracy/tracy": "^2.10",
"tomasvotruba/class-leak": "^0.2"
},
"autoload": {
"psr-4": {
"Symplify\\RuleDocGenerator\\": "src"
}
},
"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"
}
}
Loading

0 comments on commit 34f5f62

Please sign in to comment.