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 Dec 12, 2024
1 parent 89461ff commit c3fd35b
Show file tree
Hide file tree
Showing 753 changed files with 69,103 additions and 1,241 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 ClassLeak202412;

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 ClassLeak202412;

use Symfony\Component\Console\Application;
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Console\Output\ConsoleOutput;
use ClassLeak202412\Symfony\Component\Console\Application;
use ClassLeak202412\Symfony\Component\Console\Input\ArgvInput;
use ClassLeak202412\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.

47 changes: 4 additions & 43 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,55 +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": "^11.35",
"nette/utils": "^3.2",
"nikic/php-parser": "^5.3",
"symfony/console": "^6.4",
"symfony/finder": "^6.4",
"webmozart/assert": "^1.11"
},
"require-dev": {
"phpstan/extension-installer": "^1.4",
"phpstan/phpstan": "^2.0",
"phpunit/phpunit": "^11.5",
"rector/rector": "^2.0",
"symplify/easy-coding-standard": "^12.4",
"symplify/phpstan-extensions": "^12.0",
"tomasvotruba/unused-public": "^2.0",
"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-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",
"rector": "vendor/bin/rector process --dry-run --ansi"
}
}
Loading

0 comments on commit c3fd35b

Please sign in to comment.