diff --git a/CHANGELOG.md b/CHANGELOG.md index 67fa8345b9..15fb561bca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ Version 4.0.0-dev * In formatting-preserving pretty printer: * Improved formatting of elements inserted into multi-line arrays. +### Removed + +* The `Autoloader` class has been removed. It is not required to use the Composer autoloader. + Version 4.0.0-alpha3 (2017-12-26) --------------------------------- diff --git a/UPGRADE-4.0.md b/UPGRADE-4.0.md index afa9685d52..ca36d5d864 100644 --- a/UPGRADE-4.0.md +++ b/UPGRADE-4.0.md @@ -73,4 +73,5 @@ Because HHVM does not support PHP 7, HHVM is no longer supported. * The XML serializer has been removed. As such, the classes `Serializer\XML`, and `Unserializer\XML`, as well as the interfaces `Serializer` and `Unserializer` no longer exist. * The `BuilderAbstract` class has been removed. It's functionality is moved into `BuilderHelpers`. - However, this is an internal class and should not be used directly. \ No newline at end of file + However, this is an internal class and should not be used directly. +* The `Autoloader` class has been removed in favor of relying on the Composer autoloader. \ No newline at end of file diff --git a/lib/PhpParser/Autoloader.php b/lib/PhpParser/Autoloader.php deleted file mode 100644 index 50b3edbcec..0000000000 --- a/lib/PhpParser/Autoloader.php +++ /dev/null @@ -1,40 +0,0 @@ -assertTrue(class_exists(NodeVisitorAbstract::class)); - $this->assertFalse(class_exists('PHPParser_NodeVisitor_NameResolver')); - - $this->assertFalse(class_exists('PhpParser\FooBar')); - $this->assertFalse(class_exists('PHPParser_FooBar')); - } -} diff --git a/test_old/run.php b/test_old/run.php index 31846cf63f..2d7cdaccb6 100644 --- a/test_old/run.php +++ b/test_old/run.php @@ -110,8 +110,7 @@ function showHelp($error) { showHelp('Test type must be one of: PHP5, PHP7 or Symfony'); } -require_once __DIR__ . '/../lib/PhpParser/Autoloader.php'; -PhpParser\Autoloader::register(); +require_once __DIR__ . '/../vendor/autoload.php'; $lexer = new PhpParser\Lexer\Emulative(['usedAttributes' => [ 'comments', 'startLine', 'endLine', 'startTokenPos', 'endTokenPos',