Commit 4f8ff111 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

Issue #3304830 by mglaman: Library analyzer is not ignoring fixture files

parent f30c322d
Loading
Loading
Loading
Loading
+3 −0
Changes for src/LibraryDeprecationAnalyzer.php: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -330,6 +330,9 @@ final class LibraryDeprecationAnalyzer {

    $deprecations = [];
    foreach ($iterator as $file) {
      if (fnmatch('*/tests/fixtures/*.php', $file->getPathName())) {
        continue;
      }
      try {
        $tokens = token_get_all(file_get_contents($file->getPathName()));
      } catch (\ParseError $error) {