-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Rui Chen <[email protected]>
- Loading branch information
1 parent
67f30ef
commit 374d998
Showing
1 changed file
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|
@@ -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["[email protected]"].opt_bin | ||
|
||
(testpath/"composer.json").write <<~JSON | ||
{ | ||
"name": "homebrew/psalm-test", | ||
|