Skip to content

Mock classes with new in initializers on PHP 8.1#1160

Merged
davedevelopment merged 6 commits intomockery:masterfrom
ghostwriter:feature/mock-new-in-initializers
Jan 14, 2022
Merged

Mock classes with new in initializers on PHP 8.1#1160
davedevelopment merged 6 commits intomockery:masterfrom
ghostwriter:feature/mock-new-in-initializers

Conversation

@ghostwriter
Copy link
Member

This patch resolves #1154, via the following changes:

  • Add tests and fixtures
  • Mock classes with new in initializers

Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
@Bilge
Copy link
Contributor

Bilge commented Jan 13, 2022

Confirmed this patch works for me 👍🏻

@davedevelopment davedevelopment merged commit 98dd208 into mockery:master Jan 14, 2022
@davedevelopment
Copy link
Collaborator

👍 thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PHP 8.1 new in constructor initializers

3 participants

Comments