[BUGFIX] Require doctrine/lexer to get removed lexer classes 01/57601/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Fri, 13 Jul 2018 18:15:30 +0000 (20:15 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Sat, 14 Jul 2018 18:35:17 +0000 (20:35 +0200)
With the release of doctrine/dbal in version 2.8, the class
`Doctrine\Common\Lexer` got removed. To circumvent this issue, the
package `doctrine/lexer` will be used.

Used composer command:

    composer require doctrine/lexer:^1.0

Resolves: #85552
Releases: master, 8.7
Change-Id: I5dd007c3b95be42dfd3305f750606ae4fcabedf2
Reviewed-on: https://review.typo3.org/57601
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
composer.json
composer.lock
typo3/sysext/core/Classes/Database/Schema/Parser/Lexer.php

index 65b3308..ee130b6 100644 (file)
@@ -40,6 +40,7 @@
                "cogpowered/finediff": "~0.3.1",
                "doctrine/dbal": "~2.5.4",
                "doctrine/instantiator": "~1.0.4",
+               "doctrine/lexer": "^1.0",
                "guzzlehttp/guzzle": "^6.3.0",
                "mso/idna-convert": "^1.1.0",
                "psr/http-message": "~1.0",
index 1c22dde..40421c3 100644 (file)
@@ -1,10 +1,10 @@
 {
     "_readme": [
         "This file locks the dependencies of your project to a known state",
-        "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
+        "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
         "This file is @generated automatically"
     ],
-    "content-hash": "7a8192024da87bd27d79d2ff271bee38",
+    "content-hash": "a19861b85fd39ac72029439831396301",
     "packages": [
         {
             "name": "cogpowered/finediff",
index 00fb9b0..2222583 100644 (file)
@@ -19,7 +19,7 @@ namespace TYPO3\CMS\Core\Database\Schema\Parser;
 /**
  * Scans a MySQL CREATE TABLE statement for tokens.
  */
-class Lexer extends \Doctrine\Common\Lexer
+class Lexer extends \Doctrine\Common\Lexer\AbstractLexer
 {
     // All tokens that are not valid identifiers must be < 100
     const T_NONE = 1;