From 538081f6ccfcc94a80144427a627da96b0d14408 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Mon, 14 Aug 2023 20:57:20 +0200 Subject: [PATCH] Update deps --- .php-cs-fixer.dist.php | 22 ++++++++++++++++++++++ .php_cs.dist | 11 ----------- composer.json | 5 +++-- 3 files changed, 25 insertions(+), 13 deletions(-) create mode 100644 .php-cs-fixer.dist.php delete mode 100644 .php_cs.dist diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php new file mode 100644 index 0000000..1fe3675 --- /dev/null +++ b/.php-cs-fixer.dist.php @@ -0,0 +1,22 @@ + true, + 'array_indentation' => true, + 'ternary_to_null_coalescing' => true, + 'assign_null_coalescing_to_coalesce_equal' => true, + ]); + } +}; + +$config->getFinder() + ->append([__DIR__ . '/magna.php']); + +$cacheDir = getenv('TRAVIS') ? getenv('HOME') . '/.php-cs-fixer' : __DIR__; + +$config->setCacheFile($cacheDir . '/.php_cs.cache'); + +return $config; diff --git a/.php_cs.dist b/.php_cs.dist deleted file mode 100644 index a7ea577..0000000 --- a/.php_cs.dist +++ /dev/null @@ -1,11 +0,0 @@ -getFinder() - ->in(__DIR__); - -$cacheDir = getenv('TRAVIS') ? getenv('HOME') . '/.php-cs-fixer' : __DIR__; - -$config->setCacheFile($cacheDir . '/.php_cs.cache'); - -return $config; diff --git a/composer.json b/composer.json index c80f52f..1c2fd35 100644 --- a/composer.json +++ b/composer.json @@ -9,12 +9,13 @@ "support": { "issues": "https://github.com/danog/magnaluna/issues" }, + "minimum-stability": "beta", "require": { - "danog/madelineproto": "dev-master" + "danog/madelineproto": "^8" }, "license": "AGPL-3.0-only", "require-dev": { - "amphp/php-cs-fixer-config": "dev-master" + "amphp/php-cs-fixer-config": "^2" }, "scripts": { "check": [