diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index a586ee0106..56cae5c9c7 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -35,7 +35,7 @@ new SMF\Fixer\ClassNotation\SectionComments(), ]) ->setRules([ - '@PER-CS2.0' => true, + '@PER-CS2x0' => true, // PSR12 overrides. 'no_break_comment' => false, // A bit buggy with comments. diff --git a/composer.json b/composer.json index 7c04e8affd..6b156da1d9 100644 --- a/composer.json +++ b/composer.json @@ -19,8 +19,10 @@ "friendsofphp/php-cs-fixer": "^3.40" }, "scripts": { - "lint": "php-cs-fixer --quiet check --config .php-cs-fixer.dist.php --path-mode=intersection $(git diff --name-only \"*.php\") || php-cs-fixer check --diff --config .php-cs-fixer.dist.php --path-mode=intersection $(git diff --name-only \"*.php\") --allow-risky=yes", - "lint-fix": "php-cs-fixer fix -v --config .php-cs-fixer.dist.php --path-mode=intersection $(git diff --name-only \"*.php\") --allow-risky=yes" + "lint": "php-cs-fixer --quiet check --config .php-cs-fixer.dist.php --path-mode=intersection $(git diff --name-only \"*.php\") --allow-risky=yes || php-cs-fixer check --diff --config .php-cs-fixer.dist.php --path-mode=intersection $(git diff --name-only \"*.php\") --allow-risky=yes", + "lint-fix": "php-cs-fixer fix -v --config .php-cs-fixer.dist.php --path-mode=intersection $(git diff --name-only \"*.php\") --allow-risky=yes", + "post-install-cmd": "php ./vendor/simplemachines/build-tools/secure-vendor-dir.php", + "post-update-cmd": "php ./vendor/simplemachines/build-tools/secure-vendor-dir.php" }, "config": { "platform": { diff --git a/composer.lock b/composer.lock index bb59eec77e..0a94e8aa2d 100644 --- a/composer.lock +++ b/composer.lock @@ -1699,12 +1699,12 @@ "source": { "type": "git", "url": "https://github.com/SimpleMachines/BuildTools.git", - "reference": "d75973c86bea740fabc920cb6d35d65fa29bb2a9" + "reference": "803472386a47076dd0ede0e964f5e87e11ad8925" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/SimpleMachines/BuildTools/zipball/d75973c86bea740fabc920cb6d35d65fa29bb2a9", - "reference": "d75973c86bea740fabc920cb6d35d65fa29bb2a9", + "url": "https://api.github.com/repos/SimpleMachines/BuildTools/zipball/803472386a47076dd0ede0e964f5e87e11ad8925", + "reference": "803472386a47076dd0ede0e964f5e87e11ad8925", "shasum": "" }, "require": { @@ -1717,7 +1717,7 @@ "source": "https://github.com/SimpleMachines/BuildTools/tree/release-3.0", "issues": "https://github.com/SimpleMachines/BuildTools/issues" }, - "time": "2025-09-21T00:49:06+00:00" + "time": "2025-11-07T23:20:34+00:00" }, { "name": "symfony/cache",