diff --git a/src/Analyser/MutatingScope.php b/src/Analyser/MutatingScope.php index fa70cc917a0..9a330549a49 100644 --- a/src/Analyser/MutatingScope.php +++ b/src/Analyser/MutatingScope.php @@ -4060,6 +4060,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)]), ); }