Mercurial > hg > isophonics-drupal-site
diff vendor/symfony/class-loader/ClassCollectionLoader.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 7a779792577d |
children | 129ea1e6d783 |
line wrap: on
line diff
--- a/vendor/symfony/class-loader/ClassCollectionLoader.php Mon Apr 23 09:33:26 2018 +0100 +++ b/vendor/symfony/class-loader/ClassCollectionLoader.php Mon Apr 23 09:46:53 2018 +0100 @@ -11,10 +11,16 @@ namespace Symfony\Component\ClassLoader; +if (\PHP_VERSION_ID >= 70000) { + @trigger_error('The '.__NAMESPACE__.'\ClassCollectionLoader class is deprecated since Symfony 3.3 and will be removed in 4.0.', E_USER_DEPRECATED); +} + /** * ClassCollectionLoader. * * @author Fabien Potencier <fabien@symfony.com> + * + * @deprecated since version 3.3, to be removed in 4.0. */ class ClassCollectionLoader { @@ -239,7 +245,7 @@ do { $token = $tokens[++$i]; $output .= isset($token[1]) && 'b"' !== $token ? $token[1] : $token; - } while ($token[0] !== T_END_HEREDOC); + } while (T_END_HEREDOC !== $token[0]); $output .= "\n"; $rawChunk = ''; } elseif (T_CONSTANT_ENCAPSED_STRING === $token[0]) { @@ -318,8 +324,6 @@ /** * Gets an ordered array of passed classes including all their dependencies. * - * @param array $classes - * * @return \ReflectionClass[] An array of sorted \ReflectionClass instances (dependencies added if needed) * * @throws \InvalidArgumentException When a class can't be loaded