Steps to replicate the issue (include links if applicable):
- go to Special:CreateObject, e.g. https://wikifunctions.beta.wmflabs.org/wiki/Special:CreateObject
- open the caret next to type in Contents
- switch the type from Reference to Function call
- select a function such as And
- select arguments, such as true and true
(state at this point per screenshot here:
- click on Publish
- click on Publish in the modal again
What happens?:
[ZNKdca9v7JG1ZjMPSZyOeAAAABI] Exception caught: Call to a member function warning() on null
What should have happened instead?:
The error message should be a bit more user friendly, e.g. "The type of an object has to be a type, but here a Boolean was given." or even "Type error: expected Type, actual Boolean"
To be honest, I don't know how much more user friendly that really is, but a bit.
Software version (skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):