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 Feb 8, 2024
1 parent 0d610cf commit 35f30b1
Show file tree
Hide file tree
Showing 706 changed files with 66,481 additions and 960 deletions.
9 changes: 0 additions & 9 deletions .editorconfig

This file was deleted.

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

This file was deleted.

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

require __DIR__ . '/class-leak.php';
18 changes: 7 additions & 11 deletions bin/class-leak.php
Original file line number Diff line number Diff line change
@@ -1,30 +1,26 @@
<?php

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

use Symfony\Component\Console\Application;
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Console\Output\ConsoleOutput;
use ClassLeak202402\Symfony\Component\Console\Application;
use ClassLeak202402\Symfony\Component\Console\Input\ArgvInput;
use ClassLeak202402\Symfony\Component\Console\Output\ConsoleOutput;
use TomasVotruba\ClassLeak\DependencyInjection\ContainerFactory;

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

if (file_exists(__DIR__ . '/../vendor/scoper-autoload.php')) {
if (\file_exists(__DIR__ . '/../vendor/scoper-autoload.php')) {
// A. build downgraded package
require_once __DIR__ . '/../vendor/scoper-autoload.php';
} else {
// B. local repository
require_once __DIR__ . '/../vendor/autoload.php';
}

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

/** @var Application $application */
$application = $container->make(Application::class);

$exitCode = $application->run(new ArgvInput(), new ConsoleOutput());
exit($exitCode);
52 changes: 0 additions & 52 deletions build/build-scoped.sh

This file was deleted.

21 changes: 0 additions & 21 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.

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

This file was deleted.

48 changes: 4 additions & 44 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,56 +2,16 @@
"name": "tomasvotruba/class-leak",
"description": "Detect leaking classes",
"license": "MIT",
"require": {
"php": ">=7.2"
},
"bin": [
"bin/class-leak",
"bin/class-leak.php"
],
"require": {
"php": ">=8.2",
"illuminate/container": "^10.43",
"nette/utils": "^3.2",
"nikic/php-parser": "^4.18",
"symfony/console": "^6.3",
"symfony/finder": "^6.3",
"webmozart/assert": "^1.11"
},
"require-dev": {
"phpstan/extension-installer": "^1.2",
"phpstan/phpstan": "^1.10.57",
"phpunit/phpunit": "^10.5",
"rector/rector": "^1.0",
"symplify/easy-coding-standard": "^12.1",
"symplify/phpstan-extensions": "^11.2",
"tomasvotruba/unused-public": "^0.2",
"tracy/tracy": "^2.10"
},
"autoload": {
"psr-4": {
"TomasVotruba\\ClassLeak\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"TomasVotruba\\ClassLeak\\Tests\\": "tests"
}
},
"replace": {
"symfony/polyfill-ctype": "*",
"symfony/polyfill-intl-grapheme": "*",
"symfony/polyfill-intl-normalizer": "*",
"symfony/polyfill-mbstring": "*"
},
"config": {
"sort-packages": true,
"platform-check": false,
"allow-plugins": {
"phpstan/extension-installer": true
"TomasVotruba\\ClassLeak\\": "app"
}
},
"scripts": {
"check-cs": "vendor/bin/ecs check --ansi",
"fix-cs": "vendor/bin/ecs check --fix --ansi",
"phpstan": "vendor/bin/phpstan analyse --ansi --error-format symplify",
"rector": "vendor/bin/rector process --dry-run --ansi"
}
}
Loading

0 comments on commit 35f30b1

Please sign in to comment.