diff vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/PhpParser.php @ 12:7a779792577d

Update Drupal core to v8.4.5 (via Composer)
author Chris Cannam
date Fri, 23 Feb 2018 15:52:07 +0000
parents 4c8ae668cc8c
children
line wrap: on
line diff
--- a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/PhpParser.php	Fri Feb 23 15:51:18 2018 +0000
+++ b/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/PhpParser.php	Fri Feb 23 15:52:07 2018 +0000
@@ -42,7 +42,7 @@
             return $class->getUseStatements();
         }
 
-        if (false === $filename = $class->getFilename()) {
+        if (false === $filename = $class->getFileName()) {
             return array();
         }
 
@@ -67,7 +67,7 @@
      * @param string  $filename   The name of the file to load.
      * @param integer $lineNumber The number of lines to read from file.
      *
-     * @return string The content of the file.
+     * @return string|null The content of the file or null if the file does not exist.
      */
     private function getFileContent($filename, $lineNumber)
     {