Issue #3322961 by mondrake: Fix WebAssert since PHPStan can now check the number of arguments passed to methods (cherry picked from commit 5c1863a0)