diff --git a/src/Peachpie.CodeAnalysis/Semantics/SemanticsBinder.cs b/src/Peachpie.CodeAnalysis/Semantics/SemanticsBinder.cs index e0fadd9da4..24cd552d4e 100644 --- a/src/Peachpie.CodeAnalysis/Semantics/SemanticsBinder.cs +++ b/src/Peachpie.CodeAnalysis/Semantics/SemanticsBinder.cs @@ -386,6 +386,7 @@ BoundStatement BindUnsetStmt(AST.UnsetStmt stmt) { return new BoundBlock( stmt.VarList + .WhereNotNull() .Select(BindUnsetStmt) .ToList() ); diff --git a/tests/variables/unset_006.php b/tests/variables/unset_006.php new file mode 100644 index 0000000000..4a8a74d02d --- /dev/null +++ b/tests/variables/unset_006.php @@ -0,0 +1,6 @@ +