- Edited
Receive "Cannot implicitly convert 'void' to 'string'PHP (PHP0410)" error on the below code.
foreach ($summary['condition'] as $key => $value) {
echo("<td>$key :$value</td>");
}
for $value on the second line
Is this as intended?
Receive "Cannot implicitly convert 'void' to 'string'PHP (PHP0410)" error on the below code.
foreach ($summary['condition'] as $key => $value) {
echo("<td>$key :$value</td>");
}
for $value on the second line
Is this as intended?
thirdpartycook Thank you for reporting the issue.
The editor "misbehaves" on foreach ($summary['condition']
, and won't infer the type of $value
.
We'll fix this case within the next update!
May I ask for more context?
Do you have the latest version of the extension? 1.54.***
Adding /** @trace $summary['condition'] */
might help us to see, what's inside:
So far, we can't reproduce the issue.