diff --git a/Formula/p/psalm.rb b/Formula/p/psalm.rb index 00f77075511c1..f9206a3c26aff 100644 --- a/Formula/p/psalm.rb +++ b/Formula/p/psalm.rb @@ -1,9 +1,11 @@ class Psalm < Formula desc "PHP Static Analysis Tool" homepage "https://psalm.dev" + # Bump to php 8.4 on the next release, if possible. url "https://github.com/vimeo/psalm/releases/download/5.26.1/psalm.phar" sha256 "7d68a927dd72d30ec90e574cc114dd44851d9c49e3855e3c33c2bdd021259d1a" license "MIT" + revision 1 bottle do sha256 cellar: :any_skip_relocation, arm64_sequoia: "7668d9744c37551061d79c812116ad92fee0aac3fc323abda1e71f62cde39848" @@ -17,7 +19,7 @@ class Psalm < Formula end depends_on "composer" => :test - depends_on "php" + depends_on "php@8.3" # Keg-relocation breaks the formula when it replaces `/usr/local` with a non-default prefix on_macos do @@ -31,6 +33,9 @@ def install end test do + # TODO: remove when bump to use php 8.4 + ENV.prepend_path "PATH", Formula["php@8.3"].opt_bin + (testpath/"composer.json").write <<~JSON { "name": "homebrew/psalm-test",