Skip to content

Commit

Permalink
declare(); is ignored, and contained "constant" is NOT declared
Browse files Browse the repository at this point in the history
fixes incorrectly defining "strict_types" constant
  • Loading branch information
jakubmisek committed Jul 28, 2024
1 parent 2e7f402 commit deba072
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Peachpie.CodeAnalysis/Semantics/Graph/BuilderVisitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -509,9 +509,7 @@ public override void VisitBlockStmt(BlockStmt x)

public override void VisitDeclareStmt(DeclareStmt x)
{
Add(x);

base.VisitDeclareStmt(x); // visit inner statement, if present
// ignore declare();
}

public override void VisitGlobalCode(GlobalCode x)
Expand Down

0 comments on commit deba072

Please sign in to comment.