Hovering over function params when debugging returns null
Posted: February 9th, 2018, 6:36 pm
Hi,
This issue appeared to be intermittent, but I just managed to figure out how to reproduce it.
Basically, when I am debugging and I hover the mouse over a function parameter, it will return null, causing unexpected behaviour.
By function parameter, I mean the parameter in the function definition.
Here's a simple example. This trivial function adds 1 to a number and returns it:
Executing the function normally results in 2 being returned in both cases. Executing the function, and hovering over the 'int $number' in the function signature causes NULL to be returned.
I took a screen recording so you can see the bug in action.
Regards,
Dan Talash
This issue appeared to be intermittent, but I just managed to figure out how to reproduce it.
Basically, when I am debugging and I hover the mouse over a function parameter, it will return null, causing unexpected behaviour.
By function parameter, I mean the parameter in the function definition.
Here's a simple example. This trivial function adds 1 to a number and returns it:
- Code: Select all
function add(int $number) {
return $number + 1;
}
$result1 = add(1);
$result2 = add(1);
Executing the function normally results in 2 being returned in both cases. Executing the function, and hovering over the 'int $number' in the function signature causes NULL to be returned.
I took a screen recording so you can see the bug in action.
Regards,
Dan Talash