We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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;
The text was updated successfully, but these errors were encountered:
Not sure if it is only for readonly property promotion. It also messed up the code when using property promotion like
public function __construct( private EventLogInterface $eventLogService, private FileUploadRepository $fileUploadRepository ) { }
Sorry, something went wrong.
No branches or pull requests
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:
The text was updated successfully, but these errors were encountered: