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 Jul 2, 2024
1 parent 5c54cf1 commit f072ed1
Show file tree
Hide file tree
Showing 799 changed files with 73,787 additions and 2,031 deletions.
9 changes: 0 additions & 9 deletions .editorconfig

This file was deleted.

18 changes: 9 additions & 9 deletions .github/workflows/bare_run.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Bare Run on various PHP versions
name: Bare Run

on:
push:
tags:
- '*'
on: [pull_request, push]

jobs:
bare_run:
Expand All @@ -12,12 +9,15 @@ jobs:
strategy:
fail-fast: false
matrix:
php_version: ['7.2', '7.3', '7.4', '8.0', '8.1']
php_version: ['7.2', '7.3', '7.4', '8.0', '8.2']

steps:
- uses: shivammathur/setup-php@v2
- uses: actions/checkout@v2

-
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
php-version: ${{ matrix.php_version }}
coverage: none

- run: composer require rector/swiss-knife --dev --ansi
- run: php bin/swiss-knife list --ansi
4 changes: 0 additions & 4 deletions .gitignore

This file was deleted.

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

require __DIR__ . '/swiss-knife.php';
19 changes: 7 additions & 12 deletions bin/swiss-knife.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

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

use Symfony\Component\Console\Application;
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Console\Output\ConsoleOutput;
use SwissKnife202407\Symfony\Component\Console\Application;
use SwissKnife202407\Symfony\Component\Console\Input\ArgvInput;
use SwissKnife202407\Symfony\Component\Console\Output\ConsoleOutput;
use Rector\SwissKnife\DependencyInjection\ContainerFactory;

$possibleAutoloadPaths = [
// dependency
__DIR__ . '/../../../autoload.php',
Expand All @@ -15,23 +15,18 @@
// monorepo
__DIR__ . '/../../../vendor/autoload.php',
];

foreach ($possibleAutoloadPaths as $possibleAutoloadPath) {
if (file_exists($possibleAutoloadPath)) {
if (\file_exists($possibleAutoloadPath)) {
require_once $possibleAutoloadPath;
break;
}
}

$scoperAutoloadFilepath = __DIR__ . '/../vendor/scoper-autoload.php';
if (file_exists($scoperAutoloadFilepath)) {
if (\file_exists($scoperAutoloadFilepath)) {
require_once $scoperAutoloadFilepath;
}

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

$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.

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

23 changes: 0 additions & 23 deletions build/target-repository/.github/workflows/bare_run.yaml

This file was deleted.

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

This file was deleted.

55 changes: 4 additions & 51 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,57 +2,10 @@
"name": "rector/swiss-knife",
"description": "Swiss knife in pocket of every upgrade architect",
"license": "MIT",
"bin": [
"bin/swiss-knife"
],
"require": {
"php": ">=8.2",
"illuminate/container": "^10.43",
"nette/robot-loader": "^3.4",
"nette/utils": "^3.2",
"nikic/php-parser": "^4.18",
"symfony/console": "^6.4",
"symfony/process": "^6.4",
"symfony/finder": "^6.4",
"webmozart/assert": "^1.11"
},
"require-dev": {
"icanhazstring/composer-unused": "^0.8.11",
"phpunit/phpunit": "^10.5",
"rector/rector": "^1.0",
"symplify/easy-coding-standard": "^12.1",
"tomasvotruba/class-leak": "^0.2",
"tracy/tracy": "^2.10"
},
"autoload": {
"psr-4": {
"Rector\\SwissKnife\\": "src"
},
"classmap": [
"stubs"
]
},
"autoload-dev": {
"psr-4": {
"Rector\\SwissKnife\\Tests\\": "tests"
}
"php": ">=7.2"
},
"replace": {
"symfony/polyfill-ctype": "*",
"symfony/polyfill-intl-normalizer": "*",
"symfony/polyfill-mbstring": "*"
},
"config": {
"sort-packages": true,
"platform-check": false,
"allow-plugins": {
"phpstan/extension-installer": true
}
},
"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 --ansi"
}
"bin": [
"bin/swiss-knife"
]
}
Loading

0 comments on commit f072ed1

Please sign in to comment.