Skip to content

Commit 21bd009

Browse files
Closes #1063
1 parent b840dc5 commit 21bd009

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

ChangeLog-11.0.md

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](htt
99
* Changed version identifier for static analysis cache from "MD5 over source code" to `Version::id()`
1010
* The `SebastianBergmann\CodeCoverage\Filter::includeUncoveredFiles()` and `SebastianBergmann\CodeCoverage\Filter::excludeUncoveredFiles()` methods are no longer deprecated
1111

12+
### Fixed
13+
14+
* [#1063](https://github.com/sebastianbergmann/php-code-coverage/issues/1063): HTML report highlights argument named `fn` differently than other named arguments
15+
1216
## [11.0.8] - 2024-12-11
1317

1418
### Changed

src/Report/Html/Renderer/File.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
use const T_WHILE;
8484
use const T_YIELD;
8585
use const T_YIELD_FROM;
86+
use const TOKEN_PARSE;
8687
use function array_key_exists;
8788
use function array_keys;
8889
use function array_merge;
@@ -982,7 +983,7 @@ private function loadFile(string $file): array
982983
}
983984

984985
$buffer = file_get_contents($file);
985-
$tokens = token_get_all($buffer);
986+
$tokens = token_get_all($buffer, TOKEN_PARSE);
986987
$result = [''];
987988
$i = 0;
988989
$stringFlag = false;

0 commit comments

Comments
 (0)