File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 99 */
1010namespace SebastianBergmann \CodeCoverage ;
1111
12- use OutOfBoundsException ;
1312use PHPUnit \Framework \TestCase ;
1413use PHPUnit \Runner \PhptTestCase ;
1514use PHPUnit \Util \Test ;
@@ -612,9 +611,10 @@ private function getLinesToBeIgnored(string $fileName): array
612611 if (isset ($ this ->ignoredLines [$ fileName ])) {
613612 return $ this ->ignoredLines [$ fileName ];
614613 }
614+
615615 try {
616616 return $ this ->getLinesToBeIgnoredInner ($ fileName );
617- } catch (OutOfBoundsException $ e ) {
617+ } catch (\ OutOfBoundsException $ e ) {
618618 // This can happen with PHP_Token_Stream if the file is syntactically invalid,
619619 // and probably affects a file that wasn't executed.
620620 return [];
Original file line number Diff line number Diff line change 99 */
1010namespace SebastianBergmann \CodeCoverage \Node ;
1111
12- use OutOfBoundsException ;
13-
1412/**
1513 * Represents a file in the code coverage information tree.
1614 */
@@ -347,7 +345,7 @@ private function calculateStatistics(): void
347345 $ this ->processClasses ($ tokens );
348346 $ this ->processTraits ($ tokens );
349347 $ this ->processFunctions ($ tokens );
350- } catch (OutOfBoundsException $ e ) {
348+ } catch (\ OutOfBoundsException $ e ) {
351349 // This can happen with PHP_Token_Stream if the file is syntactically invalid,
352350 // and probably affects a file that wasn't executed.
353351 }
You can’t perform that action at this time.
0 commit comments