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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow PHP ^8.0
, drop PHP 7.3
#96
Conversation
@Ocramius : 8.0 job seem to fail with locked deps because of |
@Ocramius : infection does not like phpunit deprecation "at" and i dont find a clean solution, i replaced at by "once" .... |
i got this error with infection.
Have you an idea ? |
Hmm, the exception should probably be listed under Without running infection, you can reproduce these warnings with |
@Ocramius thanks 馃憤 So now tests are green, PR contains :
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fezfez excellent work, but I did indeed find multiple things that do need adjustment :S
test/DoctrineBatchUtilsTest/BatchProcessing/SelectBatchIteratorAggregateTest.php
Show resolved
Hide resolved
test/DoctrineBatchUtilsTest/BatchProcessing/SimpleBatchIteratorAggregateTest.php
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides some minor changes needed in tests and file permissions, this looks very close to what is needed to get us to PHP 8 :D
@@ -115,7 +115,7 @@ public function testIterationWithSuccessfulReFetches(): void | |||
['Yadda', ['id' => 123], $freshObjects['foo']], | |||
['Yadda', ['id' => 456], $freshObjects['bar']], | |||
]); | |||
$this->entityManager->expects(self::at(2))->method('clear'); | |||
$this->entityManager->expects(self::once())->method('clear'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've mentioned this previously: this clear()
must be called after the other invocations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have fixed this test but i think it is really messy, have you a more clean solution ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's messy, but it is indeed required. The best we can do is isolating the stub creation to a private
method.
Further refactoring can be deferred to a later point in time: for now, this (IMO) works well enough.
test/DoctrineBatchUtilsTest/BatchProcessing/SelectBatchIteratorAggregateTest.php
Show resolved
Hide resolved
test/DoctrineBatchUtilsTest/BatchProcessing/SimpleBatchIteratorAggregateTest.php
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fezfez for the purposes of this patch, I'd say:
- clean up the last CS checks
- open a new issue to clean up UoW/EntityManager stubs in a separate task that somebody else can take on
@Ocramius : done. curious to see a more clean solution. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent, thanks @fezfez!
Note :
roave/backward-compatibility-check
has been drop because it does not support PHP:^8.0 and he his not used in CI (probably only in local)Thanks for your awesome work 馃殌 馃寛 !