Closed johnbillion closed 5 years ago
Good catch - I've just manually tried to check all the rest of the returns, and I can't see any more. Shame there isn't tooling to pick up on this -- I'll see if phpstan or phpcs could do that.
Thank you very much!
Yeah PHPStan should be able to pick this up.
Description
When using the
wpphp
driver, creating users triggers an error because theUserElement::create()
method doesn't pass the correct variable to itsget()
method after creating the user.This fixes that.