View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001740 | Xdebug | Code Coverage | public | 2020-01-28 06:15 | 2020-04-09 08:53 |
| Reporter | axent | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | random |
| Status | resolved | Resolution | unable to reproduce | ||
| Platform | mac | OS | Alpine Linux | OS Version | v3.11 |
| Product Version | 2.9.1 | ||||
| Summary | 0001740: No marked as coverage by array_merge as function attribute | ||||
| Description | although codeline was tested, covarege shows the line of code as untested | ||||
| Tags | No tags attached. | ||||
| Operating System | |||||
| PHP Version | 7.4.0-7.4.4 | ||||
|
|
Please attach the whole file (and only the file), that shows this problem. |
|
|
Can you please supply the requested information? |
|
|
Sorry, It was refactored and I can not find more the part in source code. :( |
|
|
Okay, that's fine. Let me know (in a new issue) when you see this happening again, and then please attach that whole file to the ticket. |
|
|
Hello, thanks for your great work. Got this issue too FYI. Cannot drop client file here but here somme explanation for my case: Working: $bar = [ Not working: $foo = [ Cannot join file, got error from database. |
|
|
Forgot version when i re-write issue: PHP 7.4.4 and xDebug 2.9.2 |
|
|
I am having the same issue. I have found this to be the case with multiple php functions such as json_encode, array_merge, array_map, sprintf, ... Working: Not working: in this not working example the line 'bar' => json_encode( is marked as not covered. |
|
|
Please create a new bug report (this is closed) when providing whole files that I can "php -r" , and tell me which exact lines aren't covered. Please read the instructions on what I need at https://xdebug.org/reporting-bugs (I'll add a specific code coverage section in a few hours). |