Skip to content

Commit 32d57fd

Browse files
sebastianbergmannsmmccabe
authored andcommitted
1 parent d06b799 commit 32d57fd

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

ChangeLog.md

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
44

5+
## [9.1.11] - 2020-MM-DD
6+
7+
### Fixed
8+
9+
* [#811](https://github.com/sebastianbergmann/php-code-coverage/issues/811): `T_FN` constant is used on PHP 7.3 where it is not available
10+
511
## [9.1.10] - 2020-09-18
612

713
### Added
@@ -272,6 +278,7 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](htt
272278
* Class names are now abbreviated (unqualified name shown, fully qualified name shown on hover) in the file view of the HTML report
273279
* Update HTML report to Bootstrap 4
274280

281+
[9.1.11]: https://github.com/sebastianbergmann/php-code-coverage/compare/9.1.10...master
275282
[9.1.10]: https://github.com/sebastianbergmann/php-code-coverage/compare/9.1.9...9.1.10
276283
[9.1.9]: https://github.com/sebastianbergmann/php-code-coverage/compare/9.1.8...9.1.9
277284
[9.1.8]: https://github.com/sebastianbergmann/php-code-coverage/compare/9.1.7...9.1.8

src/Report/Html/Renderer/File.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,6 @@ private static function keywordTokens(): array
10911091
T_EXTENDS => true,
10921092
T_FINAL => true,
10931093
T_FINALLY => true,
1094-
T_FN => true,
10951094
T_FOR => true,
10961095
T_FOREACH => true,
10971096
T_FUNCTION => true,
@@ -1129,6 +1128,10 @@ private static function keywordTokens(): array
11291128
T_YIELD_FROM => true,
11301129
];
11311130

1131+
if (defined('T_FN')) {
1132+
self::$keywordTokens[constant('T_FN')] = true;
1133+
}
1134+
11321135
if (defined('T_MATCH')) {
11331136
self::$keywordTokens[constant('T_MATCH')] = true;
11341137
}

0 commit comments

Comments
 (0)