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 3, 2024
1 parent 0dd6d0e commit 0fa4d5c
Show file tree
Hide file tree
Showing 738 changed files with 68,189 additions and 1,230 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.0",
"nette/utils": "^3.2",
"nikic/php-parser": "^4.19",
"symfony/console": "^6.4",
"symfony/finder": "^6.4",
"webmozart/assert": "^1.11"
},
"require-dev": {
"phpstan/extension-installer": "^1.2",
"phpstan/phpstan": "^1.12",
"phpunit/phpunit": "^10.5",
"rector/rector": "^1.2",
"symplify/easy-coding-standard": "^12.1",
"symplify/phpstan-extensions": "^11.2",
"tomasvotruba/unused-public": "^1.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 --error-format symplify",
"rector": "vendor/bin/rector process --dry-run --ansi"
}
}
Loading

0 comments on commit 0fa4d5c

Please sign in to comment.