Skip to content

Commit

Permalink
psalm: use [email protected]
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
chenrui333 committed Nov 22, 2024
1 parent 67f30ef commit 374d998
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Formula/p/psalm.rb
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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
Expand All @@ -31,6 +33,9 @@ def install
end

test do
# TODO: remove when bump to use php 8.4
ENV.prepend_path "PATH", Formula["[email protected]"].opt_bin

(testpath/"composer.json").write <<~JSON
{
"name": "homebrew/psalm-test",
Expand Down

0 comments on commit 374d998

Please sign in to comment.