From 0e9e6ad9a5070a7db468d89d3545fc184b30a0aa Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Tue, 1 Feb 2022 15:36:12 +0100 Subject: [PATCH] fix --- src/Analyser/MutatingScope.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Analyser/MutatingScope.php b/src/Analyser/MutatingScope.php index d98c716fe1..bbd489a844 100644 --- a/src/Analyser/MutatingScope.php +++ b/src/Analyser/MutatingScope.php @@ -4100,6 +4100,8 @@ public function unsetExpression(Expr $expr): self $this->getType($expr->var)->unsetOffset($this->getType($expr->dim)), )->invalidateExpression( new FuncCall(new FullyQualified('count'), [new Arg($expr->var)]), + )->invalidateExpression( + new FuncCall(new FullyQualified('sizeof'), [new Arg($expr->var)]), ); }