Minimum required prophecy version is incompatible with object (return) type declarations
Recent changes like https://review.typo3.org/c/59600/ introduced
object return type decarations which are only supported as of prophecy version 1.7.5.
This caused nightly, composer minimum builds, to fail: https://bamboo.typo3.com/browse/CORE-GTN-UT2PHP72-646
Therefore the default minimum – as required by phpunit (^1.7) – needs to be raised to 1.7.5.
[BUGFIX] Raise minimum required prophecy version to 1.7.5
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
Reviewed-by: Alexander Schnitzler <firstname.lastname@example.org>
Tested-by: Alexander Schnitzler <email@example.com>
Tested-by: TYPO3com <firstname.lastname@example.org>
Reviewed-by: Anja Leichsenring <email@example.com>
Tested-by: Anja Leichsenring <firstname.lastname@example.org>