Skip to content

Commit

Permalink
add mac php dir; fix type on accept() for generated code to be mixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
parrt committed Mar 18, 2022
1 parent 4d2ebbf commit 14ce0cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ private String locateTool(String tool) {
return phpPath;
}

String[] roots = {"/usr/local/bin/", "/opt/local/bin", "/usr/bin/"};
String[] roots = {"/usr/local/bin/", "/opt/local/bin", "/opt/homebrew/bin/", "/usr/bin/"};

for (String root: roots) {
if (new File(root + tool).exists()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ public function <if(method.isEnter)>enter<else>exit<endif>Rule(ParseTreeListener
>>

VisitorDispatchMethod(method) ::= <<
public function accept(ParseTreeVisitor $visitor)
public function accept(ParseTreeVisitor $visitor) : mixed
{
if ($visitor instanceof <parser.grammarName>Visitor) {
return $visitor->visit<struct.derivedFromName; format="cap">($this);
Expand Down

0 comments on commit 14ce0cd

Please sign in to comment.