[BUGFIX] Raise minimum required prophecy version to 1.7.5 20/59620/6
authorBenjamin Franzke <bfr@qbus.de>
Sat, 2 Feb 2019 04:55:09 +0000 (05:55 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sat, 2 Feb 2019 10:28:10 +0000 (11:28 +0100)
The recently introduced `object` type declarations for extbase classes
require a minimum version of prophecy 1.7.5. Previous versions trigger
the following error:
  Scalar type declaration 'object' must be unqualified

Prophecy added support for object type declarations in 1.7.4 and
for return type object declarations in 1.7.5.

Therefore we add an explicit dev dependency to prophecy in composer.json
now (previously it was transitively required as ^1.7 by phpunit 7.1).

composer require --no-update --dev phpspec/prophecy:^1.7.5
composer update --lock

Releases: master
Resolves: #87622
Change-Id: Ic35db424d1ea46143839ec3f4bd3c10e39c99b4e
Reviewed-on: https://review.typo3.org/59620
Reviewed-by: Alexander Schnitzler <typo3@alexanderschnitzler.de>
Tested-by: Alexander Schnitzler <typo3@alexanderschnitzler.de>
Tested-by: TYPO3com <noreply@typo3.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
composer.json
composer.lock
typo3/sysext/core/composer.json

index 52bb9f3..e1096ad 100644 (file)
@@ -67,6 +67,7 @@
                "codeception/codeception": "^2.4.5",
                "fiunchinho/phpunit-randomizer": "^4.0",
                "friendsofphp/php-cs-fixer": "^2.12.2",
+               "phpspec/prophecy": "^1.7.5",
                "typo3/cms-styleguide": "~10.0.2",
                "typo3/testing-framework": "~5.0.4"
        },
index b2e85ab..0e01c0c 100644 (file)
@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
         "This file is @generated automatically"
     ],
-    "content-hash": "78db7fed2b68523704f3ef0d9e7aca38",
+    "content-hash": "cd80908ee69343d7f094a589ce995519",
     "packages": [
         {
             "name": "cogpowered/finediff",
index cdca632..0cba2e7 100644 (file)
@@ -50,6 +50,7 @@
                "codeception/codeception": "^2.4.5",
                "fiunchinho/phpunit-randomizer": "^4.0",
                "friendsofphp/php-cs-fixer": "^2.12.2",
+               "phpspec/prophecy": "^1.7.5",
                "typo3/cms-styleguide": "~10.0.2",
                "typo3/testing-framework": "~5.0.4"
        },