Is your feature request related to a problem? Please describe.
PHP7.4 introduced class variable type-hinting. It would be great if the plugin could identify the selected php version for this project and if >= 7.4, could make a slight change to the mock declaration.
Describe the solution you'd like
Current behaviour:
/** @var DistributionRepository|ObjectProphecy */
private $distributionRepository;
Desired behaviour:
use Prophecy\Prophecy\ObjectProphecy;
/** @var DistributionRepository|ObjectProphecy */
private ObjectProphecy $distributionRepository;
Is your feature request related to a problem? Please describe.
PHP7.4 introduced class variable type-hinting. It would be great if the plugin could identify the selected php version for this project and if >= 7.4, could make a slight change to the mock declaration.
Describe the solution you'd like
Current behaviour:
/** @var DistributionRepository|ObjectProphecy */private $distributionRepository;Desired behaviour:
use Prophecy\Prophecy\ObjectProphecy;/** @var DistributionRepository|ObjectProphecy */private ObjectProphecy $distributionRepository;