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 May 20, 2024
1 parent 37ad1e7 commit 9279305
Show file tree
Hide file tree
Showing 284 changed files with 37,609 additions and 584 deletions.
9 changes: 0 additions & 9 deletions .editorconfig

This file was deleted.

1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# These are supported funding model platforms
github: tomasvotruba
custom: https://www.paypal.me/rectorphp
6 changes: 0 additions & 6 deletions .gitignore

This file was deleted.

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

require __DIR__ . '/phpstan-bodyscan.php';
41 changes: 13 additions & 28 deletions bin/phpstan-bodyscan.php
Original file line number Diff line number Diff line change
@@ -1,52 +1,37 @@
<?php

declare(strict_types=1);

use Symfony\Component\Console\Application;
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Output\ConsoleOutput;
use Symfony\Component\Console\Style\SymfonyStyle;
declare (strict_types=1);
namespace PHPStanBodyscan202405;

use PHPStanBodyscan202405\Symfony\Component\Console\Application;
use PHPStanBodyscan202405\Symfony\Component\Console\Input\ArgvInput;
use PHPStanBodyscan202405\Symfony\Component\Console\Input\ArrayInput;
use PHPStanBodyscan202405\Symfony\Component\Console\Output\ConsoleOutput;
use PHPStanBodyscan202405\Symfony\Component\Console\Style\SymfonyStyle;
use TomasVotruba\PHPStanBodyscan\Command\RunCommand;
use TomasVotruba\PHPStanBodyscan\OutputFormatter\JsonOutputFormatter;
use TomasVotruba\PHPStanBodyscan\OutputFormatter\TableOutputFormatter;
use TomasVotruba\PHPStanBodyscan\PHPStanConfigFactory;
use TomasVotruba\PHPStanBodyscan\Process\AnalyseProcessFactory;

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';
}

// 1. setup dependencies
$symfonyStyle = new SymfonyStyle(new ArrayInput([]), new ConsoleOutput());

$jsonOutputFormatter = new JsonOutputFormatter($symfonyStyle);
$tableOutputFormatter = new TableOutputFormatter($symfonyStyle);

$runCommand = new RunCommand(
$symfonyStyle,
new AnalyseProcessFactory(),
new PHPStanConfigFactory(),
$jsonOutputFormatter,
$tableOutputFormatter
);

$runCommand = new RunCommand($symfonyStyle, new AnalyseProcessFactory(), new PHPStanConfigFactory(), $jsonOutputFormatter, $tableOutputFormatter);
$application = new Application();
$application->add($runCommand);
$application->setDefaultCommand('run');

// 2. hide default commands
$application->get('completion')
->setHidden();
$application->get('help')
->setHidden();
$application->get('list')
->setHidden();

$application->get('completion')->setHidden();
$application->get('help')->setHidden();
$application->get('list')->setHidden();
// 3. execute command
$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.

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

This file was deleted.

46 changes: 1 addition & 45 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,50 +7,6 @@
"bin/phpstan-bodyscan.php"
],
"require": {
"php": ">=8.2",
"nette/neon": "^3.4",
"symfony/console": "^6.4",
"symfony/process": "^7.0",
"webmozart/assert": "^1.11"
},
"require-dev": {
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan": "^1.11",
"phpunit/phpunit": "^11.1",
"rector/rector": "^1.0",
"symplify/easy-coding-standard": "^12.1",
"symplify/phpstan-rules": "^12.4",
"tomasvotruba/class-leak": "^0.2.13",
"tomasvotruba/type-coverage": "^0.3",
"tomasvotruba/unused-public": "^0.3",
"tracy/tracy": "^2.10"
},
"autoload": {
"psr-4": {
"TomasVotruba\\PHPStanBodyscan\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"TomasVotruba\\PHPStanBodyscan\\Tests\\": "tests"
}
},
"config": {
"platform-check": false,
"sort-packages": true,
"allow-plugins": {
"phpstan/extension-installer": true
}
},
"replace": {
"symfony/polyfill-ctype": "*",
"symfony/polyfill-intl-grapheme": "*",
"symfony/polyfill-mbstring": "*"
},
"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"
"php": ">=7.2"
}
}
Loading

0 comments on commit 9279305

Please sign in to comment.