Skip to content
New issue

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

Make PHP 8 build green #1220

Merged
merged 6 commits into from Sep 26, 2020
Merged

Make PHP 8 build green #1220

merged 6 commits into from Sep 26, 2020

Conversation

greg0ire
Copy link
Member

No description provided.

@greg0ire greg0ire changed the base branch from 1.12.x to 2.1.x September 26, 2020 15:58
@greg0ire greg0ire changed the title Allow phpunit 93 Allow phpunit 9.3 Sep 26, 2020
assertContains() is no longer supposed to be used with strings.
It is a code smell, but I am not sure it makes sense to introduce a
public interface for this.
That version is compatible with PHP 8
@greg0ire greg0ire force-pushed the allow-phpunit-93 branch 2 times, most recently from 7958030 to 0b4bd67 Compare September 26, 2020 16:23
@greg0ire greg0ire marked this pull request as ready for review September 26, 2020 16:48
@greg0ire greg0ire changed the title Allow phpunit 9.3 Make PHP 8 build green Sep 26, 2020
@@ -140,7 +138,7 @@ public function testReset() : void
$noProxyManager->expects($this->once())
->method('clear');

$proxyManager = $this->getMockBuilder([LazyLoadingInterface::class, EntityManagerInterface::class])->getMock();
$proxyManager = $this->createMock(LazyLoadingEntityManagerInterface::class);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you create LazyLoadingEntityManagerInterface? Isn't the previous multi-interface mock creation not working anymore in PHP 8?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does not have to do with PHP 8, but with PHPUnit 9, which no longer supports it because it's a code smell IIRC.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guess I have to remove another one of my old code snippets 😄

@ostrolucky ostrolucky merged commit 37e44f0 into doctrine:2.1.x Sep 26, 2020
@greg0ire greg0ire deleted the allow-phpunit-93 branch September 26, 2020 19:41
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.

None yet

3 participants