Merge: phpPackages: improve error messages of removed/renamed packages (#440620)

This commit is contained in:
Maximilian Bosch
2025-09-07 19:17:05 +02:00
committed by GitHub
+3 -3
View File
@@ -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