From af0484faf6bd21ef74d35804f680d20714d3938a Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Sun, 19 Apr 2026 23:03:20 +0300 Subject: [PATCH 1/2] add php cs fixer --- .php-cs-fixer.dist.php | 28 ++++++++++++++++++++++++++++ flake.nix | 1 + 2 files changed, 29 insertions(+) create mode 100644 .php-cs-fixer.dist.php diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php new file mode 100644 index 0000000..4324ce9 --- /dev/null +++ b/.php-cs-fixer.dist.php @@ -0,0 +1,28 @@ +setRiskyAllowed(false) + ->setRules([ + '@auto' => true + ]) + // 💡 by default, Fixer looks for `*.php` files excluding `./vendor/` - here, you can groom this config + ->setFinder( + (new Finder()) + // 💡 root folder to check + ->in(__DIR__) + // 💡 additional files, eg bin entry file + // ->append([__DIR__.'/bin-entry-file']) + // 💡 folders to exclude, if any + // ->exclude([/* ... */]) + // 💡 path patterns to exclude, if any + // ->notPath([/* ... */]) + // 💡 extra configs + // ->ignoreDotFiles(false) // true by default in v3, false in v4 or future mode + // ->ignoreVCS(true) // true by default + ) +; diff --git a/flake.nix b/flake.nix index cdfc2da..3d654e9 100644 --- a/flake.nix +++ b/flake.nix @@ -14,6 +14,7 @@ cypress php85 php85Packages.composer + php85Packages.php-cs-fixer phpunit ]; }; From 26abaeb7399ceaa3c41dc1fd1cf26901c8bea282 Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Sun, 19 Apr 2026 23:03:28 +0300 Subject: [PATCH 2/2] specify php version in composer --- composer.json | 1 + 1 file changed, 1 insertion(+) diff --git a/composer.json b/composer.json index c79ca24..9daa1ef 100644 --- a/composer.json +++ b/composer.json @@ -18,6 +18,7 @@ "serve": "php -S localhost:8080 -t public/" }, "require": { + "php": "8.5.4", "slim/slim": "4.*", "slim/psr7": "^1.8", "php-di/slim-bridge": "^3.4"