We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a147b7e commit 0d3503dCopy full SHA for 0d3503d
PHP/CodeCoverage/Util.php
@@ -240,9 +240,15 @@ public static function getLinesToBeCovered($className, $methodName)
240
*/
241
public static function getLinesToBeIgnored($filename, $cacheTokens = TRUE)
242
{
243
+ if (!is_string($filename)) {
244
+ throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory(
245
+ 1, 'string'
246
+ );
247
+ }
248
+
249
if (!is_bool($cacheTokens)) {
250
throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory(
- 1, 'boolean'
251
+ 2, 'boolean'
252
);
253
}
254
0 commit comments