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 1, 2024
1 parent 975235f commit 6e5ce60
Show file tree
Hide file tree
Showing 523 changed files with 55,747 additions and 1,009 deletions.
9 changes: 0 additions & 9 deletions .editorconfig

This file was deleted.

File renamed without changes.
19 changes: 6 additions & 13 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:
branches:
- main
on: [pull_request, push]

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

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2

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

# allow plugin installing
- run: composer require symplify/vendor-patches --dev
working-directory: tests/bare-directory

- run: vendor/bin/vendor-patches list --ansi
working-directory: tests/bare-directory
- run: php bin/vendor-patches list --ansi
7 changes: 0 additions & 7 deletions .gitignore

This file was deleted.

11 changes: 0 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ Generate vendor patches for packages with single command.

```bash
composer require symplify/vendor-patches --dev

# If you are applying patches to production, be sure to also explicitly add cweagans/composer-patches.
composer require cweagans/composer-patches
```

## Usage
Expand Down Expand Up @@ -91,14 +88,6 @@ composer install --verbose

<br>

## TroubleShooting

If you are on macOS, and got hang on applying patch, you may need to install `gpatch`, you can install with:

```
brew install gpatch
```

## Report Issues

In case you are experiencing a bug or want to request a new feature head over to the [Symplify monorepo issue tracker](https://github.com/symplify/symplify/issues)
Expand Down
5 changes: 3 additions & 2 deletions bin/vendor-patches
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env php
<?php
<?php
namespace VendorPatches202401;

require __DIR__ . '/vendor-patches.php';
require __DIR__ . '/vendor-patches.php';
25 changes: 6 additions & 19 deletions bin/vendor-patches.php
Original file line number Diff line number Diff line change
@@ -1,36 +1,23 @@
<?php

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

use Symfony\Component\Console\Application;
use VendorPatches202401\Symfony\Component\Console\Application;
use Symplify\VendorPatches\DependencyInjection\ContainerFactory;

$possibleAutoloadPaths = [
__DIR__ . '/../autoload.php',
__DIR__ . '/../vendor/autoload.php',
__DIR__ . '/../../../autoload.php',
__DIR__ . '/../../../vendor/autoload.php',
];

$possibleAutoloadPaths = [__DIR__ . '/../autoload.php', __DIR__ . '/../vendor/autoload.php', __DIR__ . '/../../../autoload.php', __DIR__ . '/../../../vendor/autoload.php'];
foreach ($possibleAutoloadPaths as $possibleAutoloadPath) {
if (! file_exists($possibleAutoloadPath)) {
if (!\file_exists($possibleAutoloadPath)) {
continue;
}

require_once $possibleAutoloadPath;
}


$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);

$statusCode = $application->run();
exit($statusCode);
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.

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

This file was deleted.

97 changes: 0 additions & 97 deletions build/target-repository/README.md

This file was deleted.

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

This file was deleted.

46 changes: 2 additions & 44 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,49 +6,7 @@
"bin/vendor-patches"
],
"require": {
"php": ">=8.2",
"nette/utils": "^3.2",
"symfony/console": "^6.4",
"sebastian/diff": "^5.1",
"cweagans/composer-patches": "^1.7",
"illuminate/container": "^10.39",
"symfony/finder": "^6.4",
"webmozart/assert": "^1.11"
},
"require-dev": {
"phpunit/phpunit": "^10.5",
"rector/rector": "^0.18.13",
"phpstan/phpstan": "^1.10",
"symplify/easy-coding-standard": "^12.0",
"symplify/phpstan-extensions": "^11.1",
"phpstan/extension-installer": "^1.2",
"php-parallel-lint/php-parallel-lint": "^1.3",
"tomasvotruba/class-leak": "^0.2"
},
"autoload": {
"psr-4": {
"Symplify\\VendorPatches\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Symplify\\VendorPatches\\Tests\\": "tests"
}
},
"extra": {
"enable-patching": true
},
"config": {
"platform-check": false,
"allow-plugins": {
"cweagans/composer-patches": true,
"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 --error-format symplify",
"rector": "vendor/bin/rector process --dry-run --ansi"
"php": ">=7.2",
"cweagans/composer-patches": "^1.7"
}
}
Loading

0 comments on commit 6e5ce60

Please sign in to comment.