From bd98608d2e2ee2c0a9e847a35eb66e2cffeed758 Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Sat, 24 Dec 2022 01:18:59 +0800 Subject: [PATCH] change fixer config --- .php-cs-fixer.php | 2 ++ src/ZM/script_phar_stub.php | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index bafca786..650f766b 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -67,6 +67,8 @@ return (new PhpCsFixer\Config()) 'phpdoc_summary' => false, 'php_unit_test_class_requires_covers' => false, 'global_namespace_import' => false, + 'phpdoc_order' => false, + 'no_useless_concat_operator' => false, ]) ->setFinder( PhpCsFixer\Finder::create() diff --git a/src/ZM/script_phar_stub.php b/src/ZM/script_phar_stub.php index 3650b878..2845d775 100644 --- a/src/ZM/script_phar_stub.php +++ b/src/ZM/script_phar_stub.php @@ -14,8 +14,9 @@ function loader__generated_id__() require_once Phar::running() . '/' . $v; } } -if ('__generate' . 'd_id__' === _PHAR_STUB_ID) { +if (('__generate' . 'd_id__') === _PHAR_STUB_ID) { echo 'Cannot execute this file directly!' . PHP_EOL; exit(1); } +/* @phpstan-ignore-next-line */ return json_decode(file_get_contents(__DIR__ . '/zmplugin.json'), true) ?? ['zm_module' => false];