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 Jan 15, 2024
1 parent 1f3653a commit 02f44f8
Show file tree
Hide file tree
Showing 699 changed files with 61,945 additions and 1,128 deletions.
9 changes: 0 additions & 9 deletions .editorconfig

This file was deleted.

7 changes: 0 additions & 7 deletions .gitignore

This file was deleted.

6 changes: 3 additions & 3 deletions bin/lines
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env php
<?php

declare(strict_types=1);
<?php
declare (strict_types=1);
namespace Lines202401;

require_once __DIR__ . '/lines.php';
29 changes: 13 additions & 16 deletions bin/lines.php
Original file line number Diff line number Diff line change
@@ -1,32 +1,29 @@
<?php

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

use Illuminate\Container\Container;
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;
use TomasVotruba\Lines\Console\Command\MeasureCommand;
use TomasVotruba\Lines\Console\Command\VendorCommand;
use TomasVotruba\Lines\DependencyInjection\ContainerFactory;

if (file_exists(__DIR__ . '/../vendor/scoper-autoload.php')) {
use Lines202401\Illuminate\Container\Container;
use Lines202401\Symfony\Component\Console\Application;
use Lines202401\Symfony\Component\Console\Input\ArgvInput;
use Lines202401\Symfony\Component\Console\Input\ArrayInput;
use Lines202401\Symfony\Component\Console\Output\ConsoleOutput;
use Lines202401\Symfony\Component\Console\Style\SymfonyStyle;
use Lines202401\TomasVotruba\Lines\Console\Command\MeasureCommand;
use Lines202401\TomasVotruba\Lines\Console\Command\VendorCommand;
use Lines202401\TomasVotruba\Lines\DependencyInjection\ContainerFactory;
if (\file_exists(__DIR__ . '/../vendor/scoper-autoload.php')) {
// A. build downgraded package
require_once __DIR__ . '/../vendor/scoper-autoload.php';
} elseif (file_exists(__DIR__ . '/../../../../vendor/autoload.php')) {
} elseif (\file_exists(__DIR__ . '/../../../../vendor/autoload.php')) {
// B. dev repository
require_once __DIR__ . '/../../../../vendor/autoload.php';
} else {
// C. local repository
require_once __DIR__ . '/../vendor/autoload.php';
}

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

$application = $container->make(Application::class);

$exitCode = $application->run(new ArgvInput(), new ConsoleOutput());
exit($exitCode);
15 changes: 0 additions & 15 deletions build/rector-downgrade-php-72.php

This file was deleted.

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

This file was deleted.

59 changes: 1 addition & 58 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,63 +7,6 @@
"bin/lines.php"
],
"require": {
"php": "^8.2",
"symfony/console": "^6.3",
"symfony/finder": "^6.3",
"illuminate/container": "^10.35",
"webmozart/assert": "^1.11",
"nikic/php-parser": "^4.17",
"sebastian/lines-of-code": "^2.0",
"nunomaduro/termwind": "^1.15"
},
"require-dev": {
"phpunit/phpunit": "^10.5",
"rector/rector": "^0.19",
"phpstan/phpstan": "^1.10.26",
"symplify/easy-coding-standard": "^12.1",
"tracy/tracy": "^2.10",
"tomasvotruba/class-leak": "^0.2",
"phpstan/extension-installer": "^1.3",
"symplify/vendor-patches": "^11.2",
"symplify/phpstan-rules": "^12.1"
},
"autoload": {
"psr-4": {
"TomasVotruba\\Lines\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"TomasVotruba\\Lines\\Tests\\": "tests"
},
"files": [
"tests/functions.php"
]
},
"scripts": {
"check-cs": "vendor/bin/ecs check --ansi",
"fix-cs": "vendor/bin/ecs check --fix --ansi",
"phpstan": "vendor/bin/phpstan analyze --ansi",
"rector": "vendor/bin/rector --dry-run --ansi"
},
"replace": {
"symfony/string": "*",
"symfony/polyfill-ctype": "*",
"symfony/polyfill-intl-grapheme": "*",
"symfony/polyfill-mbstring": "*"
},
"config": {
"platform-check": false,
"allow-plugins": {
"phpstan/extension-installer": true,
"cweagans/composer-patches": true
}
},
"extra": {
"patches": {
"symfony/console": [
"patches/symfony-console-helper-helper-php.patch"
]
}
"php": ">=7.2"
}
}
Loading

0 comments on commit 02f44f8

Please sign in to comment.