Closed HDVinnie closed 3 years ago
Nice, I don't actually have any say in this package (I'm just a past contributor). But probably seems fine. Might be worth updating the CI workflows as well to run against PHP 8. 👍🏻 If you need any help with that, let me know.
@owenvoke thanks. Updated the PHPUnit configs and the composer.json with your suggestion.
Thanks for the PR, the code looks good. However some tests are failing due to some deprecation. Can you have a look?
Looks like the depreciations are due to versions of Mockery lower than 1.4.1. 🤔
When running on the --prefer-lowest
on PHP 8, it seems to select the exact version that is specified by orchestra/testbench-core
, which for Testbench 4.5 is Mockery 1.2.3, not sure how to force that to be the latest version without adding Mockery ^1.4.2
to the Composer JSON.
Looks like the depreciations are due to versions of Mockery lower than 1.4.1. 🤔
When running on the
--prefer-lowest
on PHP 8, it seems to select the exact version that is specified byorchestra/testbench-core
, which for Testbench 4.5 is Mockery 1.2.3, not sure how to force that to be the latest version without adding Mockery^1.4.2
to the Composer JSON.
I have update tests and composer.json but IMO for them to all pass will need to drop PHP 7.2 support and only allow 7.3, 7.4 and 8.0.
@Elhebert all tests are now passing. Would mean the new release oof this package would require PHP 7.3+
I feel like that's probably fine. PHP 7.2 is EOL, and people can still use the existing version perfectly fine if they are on 7.2. 🤔
Do we still need to mockery
as a dev dependency if we drop 7.2?
Do we still need to
mockery
as a dev dependency if we drop 7.2?
Yes for PHP8. New release of this package should be v3.0.0 and requires PHP 7.3+
I already started work on a v3 (#57) which drop the support of Laravel 7 (and PHP 7.2.5).
I'm going to merge (soon) #62 and #65 into master. Once this is done, you can rebase and see if we still need to have mockery
as a dev dependency or not.
I'll try to do it before the end of the day (in the next 6-8 hours).
That way we can release v3 with PHP8 support.
If it's Laravel 8+, that should be fine. 👍🏻
@HDVinnie just merged both branches. You can now rebase on master ;)
@Elhebert PR is good to go.
Should be able to just do ^7.3 || ^8.0
for the PHP version. 👍🏻 Otherwise this looks great.
@owenvoke @Elhebert anyway this can be merged?