Describe the bug
In PHP8, constructor property promotion was introduced. On top of that we can now define visibility and immutability of a property.
Example:
public function __construct(
private readonly EventLogInterface $eventLogService,
private readonly FileUploadRepository $fileUploadRepository
) {
}
Quick mock will create these annotations:
/** @var private|ObjectProphecy */
private $eventLogService;
/** @var private|ObjectProphecy */
private $fileUploadRepository;
Describe the bug
In PHP8, constructor property promotion was introduced. On top of that we can now define visibility and immutability of a property.
Example:
Quick mock will create these annotations: