Unverified Commit d654c1e4 authored by Maximilian Bosch's avatar Maximilian Bosch
Browse files

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.
parent 14463d4e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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