### Godot version

v4.0.beta13.official [caacade56]

### System information

Linux Ubuntu 20.04 with Unity desktop

### Issue description

When calling an undefined function in the shader editor with argument(s), such as `undefined_function(1)`, the error reads:

> Too many arguments for "undefined_function()" call. Expected at most 0 but received 1.

instead of the expected:

> No matching function found for: 'undefined_function'.

This is possibly a regression introduced in https://github.com/godotengine/godot/issues/18225, since the latter was focused on the arguments part.

To avoid such regression in the future, consider adding a unit test with this case (and, in fact, unit tests for the other signature errors too if there are not already).

### Steps to reproduce

1. Create a shader resource and open the shader editor
2. Enter `undefined_function(1);` in the fragment() definition

### Minimal reproduction project

N/A
}
							if (new_hint != ShaderNode::Uniform::HINT_NONE) {
								if (uniform.hint != ShaderNode::Uniform::HINT_NONE) {
									if (uniform.hint == new_hint) {
										_set_error(vformat(RTR("Duplicated hint: '%s'."), get_uniform_hint_name(new_hint)));
									} else {
										_set_error(vformat(RTR("Redefinition of hint: '%s'. The hint has already been set to '%s'."), get_uniform_hint_name(new_hint), get_uniform_hint_name(uniform.hint)));
									}
									return ERR_PARSE_ERROR;
								} else {
									uniform.hint = new_hint;
									current_uniform_hint = new_hint;
								}
							}
							if (new_filter != FILTER_DEFAULT) {
								if (uniform.filter != FILTER_DEFAULT) {
									if (uniform.filter == new_filter) {
										_set_error(vformat(RTR("Duplicated filter mode: '%s'."), get_texture_filter_name(new_filter)));
									} else {
										_set_error(vformat(RTR("Redefinition of filter mode: '%s'. The filter mode has already been set to '%s'."), get_texture_filter_name(new_filter), get_texture_filter_name(uniform.filter)));
									}
									return ERR_PARSE_ERROR;
								} else {
									uniform.filter = new_filter;
									current_uniform_filter = new_filter;
								}
							}
							if (new_repeat != REPEAT_DEFAULT) {
								if (uniform.repeat != REPEAT_DEFAULT) {
									if (uniform.repeat == new_repeat) {