Skip to content

Commit 7ad22cd

Browse files
committed
release PHP 7.2 downgraded
1 parent dd0cade commit 7ad22cd

File tree

553 files changed

+59033
-1438
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

553 files changed

+59033
-1438
lines changed

.editorconfig

Lines changed: 0 additions & 9 deletions
This file was deleted.

.github/workflows/bare_run.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
name: Bare Run on various PHP versions
1+
name: Bare Run
22

3-
on:
4-
push:
5-
tags:
6-
- '*'
3+
on: [pull_request, push]
74

85
jobs:
96
bare_run:
@@ -12,12 +9,15 @@ jobs:
129
strategy:
1310
fail-fast: false
1411
matrix:
15-
php_version: ['7.4', '8.0', '8.2']
12+
php_version: ['7.2', '7.3', '7.4', '8.0', '8.2']
1613

1714
steps:
18-
- uses: shivammathur/setup-php@v2
15+
- uses: actions/checkout@v2
16+
17+
-
18+
uses: shivammathur/setup-php@v2
1919
with:
20-
php-version: ${{ matrix.php }}
20+
php-version: ${{ matrix.php_version }}
2121
coverage: none
2222

23-
- run: composer require rector/jack --dev --ansi
23+
- run: php bin/jack list --ansi

.gitignore

Lines changed: 0 additions & 7 deletions
This file was deleted.

bin/jack

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env php
2-
<?php
2+
<?php
3+
namespace Jack202508;
34

45
require __DIR__ . '/jack.php';

bin/jack.php

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
<?php
22

3-
declare(strict_types=1);
3+
declare (strict_types=1);
4+
namespace Jack202508;
45

5-
use Symfony\Component\Console\Application;
6-
use Symfony\Component\Console\Input\ArgvInput;
7-
use Symfony\Component\Console\Output\ConsoleOutput;
6+
use Jack202508\Symfony\Component\Console\Application;
7+
use Jack202508\Symfony\Component\Console\Input\ArgvInput;
8+
use Jack202508\Symfony\Component\Console\Output\ConsoleOutput;
89
use Rector\Jack\DependencyInjection\ContainerFactory;
9-
1010
$scoperAutoloadFilepath = __DIR__ . '/../vendor/scoper-autoload.php';
11-
if (file_exists($scoperAutoloadFilepath)) {
11+
if (\file_exists($scoperAutoloadFilepath)) {
1212
require_once $scoperAutoloadFilepath;
1313
}
14-
1514
// load scoped autoload just once, order matters
1615
$possibleAutoloadPaths = [
1716
// dependency
@@ -21,18 +20,14 @@
2120
// monorepo
2221
__DIR__ . '/../../../vendor/autoload.php',
2322
];
24-
2523
foreach ($possibleAutoloadPaths as $possibleAutoloadPath) {
26-
if (file_exists($possibleAutoloadPath)) {
24+
if (\file_exists($possibleAutoloadPath)) {
2725
require_once $possibleAutoloadPath;
2826
break;
2927
}
3028
}
31-
3229
$containerFactory = new ContainerFactory();
3330
$container = $containerFactory->create();
34-
3531
$application = $container->make(Application::class);
36-
3732
$exitCode = $application->run(new ArgvInput(), new ConsoleOutput());
3833
exit($exitCode);

build/build-scoped.sh

Lines changed: 0 additions & 52 deletions
This file was deleted.

build/rector-downgrade-php.php

Lines changed: 0 additions & 12 deletions
This file was deleted.

build/target-repository/.github/FUNDING.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

build/target-repository/.github/workflows/bare_run.yaml

Lines changed: 0 additions & 23 deletions
This file was deleted.

build/target-repository/composer.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)