Skip to content

Commit

Permalink
Bump zing/coding-standard from ^5.2 to ^6.1 (#36)
Browse files Browse the repository at this point in the history
* Bump zing/coding-standard from ^5.2 to ^6.1

* Add [0-9]+.x to branch
  • Loading branch information
zingimmick authored Feb 21, 2022
1 parent 9703ed9 commit e0daee5
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
1 change: 1 addition & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- master
- '[0-9]+.x'

jobs:
lint:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- master
- '[0-9]+.x'
schedule:
- cron: '0 0 * * *'

Expand Down
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
],
"config": {
"sort-packages": true,
"preferred-install": "dist"
"preferred-install": "dist",
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"require": {
"php": "^7.2 || ^8.0",
Expand All @@ -23,7 +26,7 @@
"nunomaduro/larastan": "^1.0",
"orchestra/testbench": "^4.0 || ^5.0 || ^6.0",
"phpunit/phpunit": "^8.0,<8.5.12 || ^9.3.3",
"zing/coding-standard": "^5.0"
"zing/coding-standard": "^6.1"
},
"autoload": {
"psr-4": {
Expand Down
12 changes: 2 additions & 10 deletions ecs.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,16 @@

declare(strict_types=1);

use PhpCsFixer\Fixer\ControlStructure\YodaStyleFixer;
use PhpCsFixer\Fixer\PhpUnit\PhpUnitInternalClassFixer;
use PhpCsFixer\Fixer\PhpUnit\PhpUnitTestClassRequiresCoversFixer;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symplify\EasyCodingStandard\ValueObject\Option;
use Zing\CodingStandard\Set\ECSSetList;

return static function (ContainerConfigurator $containerConfigurator): void {
$containerConfigurator->import(ECSSetList::PHP_72);
$containerConfigurator->import(ECSSetList::CUSTOM);
$containerConfigurator->import(ECSSetList::PHP71_MIGRATION);
$containerConfigurator->import(ECSSetList::PHP71_MIGRATION_RISKY);

$parameters = $containerConfigurator->parameters();
$parameters->set(Option::SKIP, [
YodaStyleFixer::class => null,
PhpUnitInternalClassFixer::class,
PhpUnitTestClassRequiresCoversFixer::class,
]);
$parameters->set(Option::PARALLEL, true);
$parameters->set(
Option::PATHS,
[__DIR__ . '/src', __DIR__ . '/tests', __DIR__ . '/ecs.php', __DIR__ . '/rector.php']
Expand Down
5 changes: 4 additions & 1 deletion tests/DriverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
use Obs\ObsClient;
use Zing\Flysystem\Obs\ObsAdapter;

class DriverTest extends TestCase
/**
* @internal
*/
final class DriverTest extends TestCase
{
public function testDriverRegistered(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Orchestra\Testbench\TestCase as BaseTestCase;
use Zing\LaravelFlysystem\Obs\ObsServiceProvider;

class TestCase extends BaseTestCase
abstract class TestCase extends BaseTestCase
{
/**
* @param mixed $app
Expand Down

0 comments on commit e0daee5

Please sign in to comment.