Skip to content

Commit 9c5a22e

Browse files
Closes #808
1 parent 23feb97 commit 9c5a22e

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.9] - 2020-MM-DD
6+
7+
### Fixed
8+
9+
* [#808](https://github.com/sebastianbergmann/php-code-coverage/issues/808): `PHP Warning: Use of undefined constant T_MATCH`
10+
511
## [9.1.8] - 2020-09-07
612

713
### Changed
@@ -252,6 +258,7 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](htt
252258
* Class names are now abbreviated (unqualified name shown, fully qualified name shown on hover) in the file view of the HTML report
253259
* Update HTML report to Bootstrap 4
254260

261+
[9.1.9]: https://github.com/sebastianbergmann/php-code-coverage/compare/9.1.8...master
255262
[9.1.8]: https://github.com/sebastianbergmann/php-code-coverage/compare/9.1.7...9.1.8
256263
[9.1.7]: https://github.com/sebastianbergmann/php-code-coverage/compare/9.1.6...9.1.7
257264
[9.1.6]: https://github.com/sebastianbergmann/php-code-coverage/compare/9.1.5...9.1.6

src/Report/Html/Renderer/File.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,6 @@ private static function keywordTokens(): array
10951095
T_INTERFACE => true,
10961096
T_ISSET => true,
10971097
T_LIST => true,
1098-
T_MATCH => true,
10991098
T_NAMESPACE => true,
11001099
T_NEW => true,
11011100
T_PRINT => true,
@@ -1118,6 +1117,10 @@ private static function keywordTokens(): array
11181117
T_YIELD_FROM => true,
11191118
];
11201119

1120+
if (defined('T_MATCH')) {
1121+
self::$keywordTokens[constant('T_MATCH')] = true;
1122+
}
1123+
11211124
return self::$keywordTokens;
11221125
}
11231126
}

0 commit comments

Comments
 (0)