Daniel-Peder opened a new issue, #8252:
URL: https://github.com/apache/netbeans/issues/8252
### Apache NetBeans version
Apache NetBeans 24
### What happened
does highlite variable as unused (line 120 on screenshot)
also in similar code does not (line 97 on screenshot)
see screenshot and enclosed code
`
function opening_day_info(array $data)
{
return array_map(
fn($info) => new OpeningInfo(
is_string($info['opens'] ?? null) ? new
TimeHHMM($info['opens']) : null,
is_string($info['closes'] ?? null) ? new
TimeHHMM($info['closes']) : null,
...array_map(
fn($description_line) => new DescriptionLine(
$description_line['inline_html_text'],
$description_line['html_class'] ??
null
),
$info['description_lines']
)
),
$data
);
}
function closing_day(array $data)
{
return new ClosingDayInfo($data['day_key'],
...closing_day_info($data['info']));
}
function closing_day_info(array $data)
{
return array_map(
fn($info) => new ClosingInfo(
...array_map(
fn($description_line) => new DescriptionLine(
$description_line['inline_html_text'],
$description_line['html_class'] ??
null
),
$info['description_lines']
)
),
$data
);
}
`

### Language / Project Type / NetBeans Component
_No response_
### How to reproduce
copy paste the code
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Linux version 5.4.0-205-generic running on amd64; UTF-8; en_US (nb)
### JDK
17.0.14; OpenJDK 64-Bit Server VM 17.0.14+7-Ubuntu-120.04
### Apache NetBeans packaging
Apache NetBeans Snap Package
### Anything else
Product Version: Apache NetBeans IDE 24
Java: 17.0.14; OpenJDK 64-Bit Server VM 17.0.14+7-Ubuntu-120.04
Runtime: OpenJDK Runtime Environment 17.0.14+7-Ubuntu-120.04
System: Linux version 5.4.0-205-generic running on amd64; UTF-8; en_US (nb)
### Are you willing to submit a pull request?
No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists