From 63c58e5c4e13b16d24fb8bca04bf8f15b0212ce3 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 30 Jul 2025 01:41:41 +0100 Subject: [PATCH] Show the Composer version in the PHP shell hook --- CHANGELOG.md | 1 + modules/php74.nix | 2 +- modules/php81.nix | 2 +- modules/php82.nix | 2 +- modules/php83.nix | 2 +- modules/php84.nix | 2 +- 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bd2bd4c..8f16488 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,3 +14,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), ### Changed - Refactor to use [devshell](https://flake.parts/options/devshell.html). +- Show the Composer version with `composer -V` in the PHP shell hook. diff --git a/modules/php74.nix b/modules/php74.nix index 97cf5ea..da91b6d 100644 --- a/modules/php74.nix +++ b/modules/php74.nix @@ -17,7 +17,7 @@ ] ++ commonPhpPackages pkgs; shellHook = '' - php --version + composer -V ''; }; }; diff --git a/modules/php81.nix b/modules/php81.nix index cdf3920..93f9cac 100644 --- a/modules/php81.nix +++ b/modules/php81.nix @@ -11,7 +11,7 @@ ] ++ commonPhpPackages pkgs; shellHook = '' - php --version + composer -V ''; }; }; diff --git a/modules/php82.nix b/modules/php82.nix index 9f0c99e..0c86fbc 100644 --- a/modules/php82.nix +++ b/modules/php82.nix @@ -11,7 +11,7 @@ ] ++ commonPhpPackages pkgs; shellHook = '' - php --version + composer -V ''; }; }; diff --git a/modules/php83.nix b/modules/php83.nix index 4bab816..671e769 100644 --- a/modules/php83.nix +++ b/modules/php83.nix @@ -11,7 +11,7 @@ ] ++ commonPhpPackages pkgs; shellHook = '' - php --version + composer -V ''; }; }; diff --git a/modules/php84.nix b/modules/php84.nix index e4d5919..639b78b 100644 --- a/modules/php84.nix +++ b/modules/php84.nix @@ -11,7 +11,7 @@ ] ++ commonPhpPackages pkgs; shellHook = '' - php --version + composer -V ''; }; };