Skip to content

Commit ad5eb4f

Browse files
committed
release PHP 7.2 downgraded
1 parent 4197064 commit ad5eb4f

File tree

442 files changed

+43141
-1087
lines changed

Some content is hidden

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

442 files changed

+43141
-1087
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.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 behastan/behastan --dev --ansi
23+
- run: php bin/behastan

.gitignore

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

bin/behastan

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 Behastan202512;
34

45
require __DIR__ . '/behastan.php';

bin/behastan.php

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

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

56
use Rector\Behastan\DependencyInjection\ContainerFactory;
6-
77
$possibleAutoloadPaths = [
88
// dependency
99
__DIR__ . '/../../../autoload.php',
@@ -12,21 +12,17 @@
1212
// monorepo
1313
__DIR__ . '/../../../vendor/autoload.php',
1414
];
15-
1615
foreach ($possibleAutoloadPaths as $possibleAutoloadPath) {
17-
if (file_exists($possibleAutoloadPath)) {
16+
if (\file_exists($possibleAutoloadPath)) {
1817
require_once $possibleAutoloadPath;
1918
break;
2019
}
2120
}
22-
2321
$scoperAutoloadFilepath = __DIR__ . '/../vendor/scoper-autoload.php';
24-
if (file_exists($scoperAutoloadFilepath)) {
22+
if (\file_exists($scoperAutoloadFilepath)) {
2523
require_once $scoperAutoloadFilepath;
2624
}
27-
2825
$container = ContainerFactory::create();
29-
$consoleApplication = $container->make(\Entropy\Console\ConsoleApplication::class);
30-
26+
$consoleApplication = $container->make(\Behastan202512\Entropy\Console\ConsoleApplication::class);
3127
$exitCode = $consoleApplication->run($argv);
3228
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)