From d654c1e45d335dc5bd887e29cf0027f41751b215 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Sat, 6 Sep 2025 10:34:10 +0200 Subject: [PATCH] phpPackages: improve error messages of removed/renamed packages * Deprecated is usually the term for stuff that's about to be removed, but the attributes are removed _already_. Make this difference explicit. * Add php8XPackages. prefix to each error, as done by Piotr in #440408. --- pkgs/top-level/php-packages.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix index 7f752445b5b2..62e415bcd610 100644 --- a/pkgs/top-level/php-packages.nix +++ b/pkgs/top-level/php-packages.nix @@ -257,9 +257,9 @@ lib.makeScope pkgs.newScope ( psalm = callPackage ../development/php-packages/psalm { }; } // lib.optionalAttrs config.allowAliases { - phpcbf = throw "`phpcbf` is now deprecated, use `php-codesniffer` instead which contains both `phpcs` and `phpcbf`."; - phpcs = throw "`phpcs` is now deprecated, use `php-codesniffer` instead which contains both `phpcs` and `phpcbf`."; - psysh = throw "`php8${lib.versions.minor php.version}Packages.psysh` is now deprecated, use `psysh`"; + phpcbf = throw "`php8${lib.versions.minor php.version}Packages.phpcbf` has been removed, use `php-codesniffer` instead which contains both `phpcs` and `phpcbf`."; + phpcs = throw "`php8${lib.versions.minor php.version}Packages.phpcs` has been removed, use `php-codesniffer` instead which contains both `phpcs` and `phpcbf`."; + psysh = throw "`php8${lib.versions.minor php.version}Packages.psysh` has been removed, use `psysh`"; }; # This is a set of PHP extensions meant to be used in php.buildEnv