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
Mockery 1.6.0 on PHP 7.3 - parse error DefinedTargetClass.php:53 #1266
Comments
This is quite unfortunate. The least worse option here might be to re-tag the 1.6.0 release with the PHP version constraint corrected. The only other option is to re-add PHP 7.3 support in 1.6.1, which may be pretty tricky. |
Fuck. Sorry everyone, I've not been paying much attention lately. Will install 7.3 and see how quickly I can get it running. |
I can't build 7.3 right now, probably openssl mismatches. |
I don't really want to re-tag like it never happened. Can I tell packagist to ignore 1.6.0 and then tag 1.6.1 with the |
No. It'll get re-synced as long as it exists on GitHub. You could delete the tag from both? |
We're running into this too on our CI runs with PHP 7.3. If you delete the 1.6.0 tag from the repo, packagist should delist it. If not, you should be able to log in to packagist and manually delete it. BTW, the problematic commit seems to be e0ecc27, and it could probably be fixed by changing it to something like return array_unique(array_merge(['\AllowDynamicProperties'], array_map(
static function (ReflectionAttribute $attribute) { return '\\' . $attribute->getName(); },
$this->rfc->getAttributes()
))); avoiding the spread-in-array and arrow functions. |
I think you will need to manually delete it. |
I think that's sorted 🤦 https://github.com/mockery/mockery/releases/tag/1.6.1 Again, apologies everyone. |
Confirmed that our PHP 7.3 runs in CI are picking up 1.5.1 now and so are working again. Thanks! |
@davedevelopment thanks, works for me. |
It looks like the broken 1.6.0 tag has reappeared on Packagist, breaking our CI again. |
Looks like someone who has the tag locally has re-pushed it. |
cc @ghostwriter |
Deleted here and on packagist |
@GrahamCampbell That was my mistake, Thanks for the heads up. @davedevelopment Thanks for taking care of that. |
Unpacking inside arrays is available since PHP 7.4
See: https://github.com/php-mock/php-mock-mockery/actions/runs/5176394271/jobs/9325157828
Requirements on composer allow PHP 7.3:
mockery/composer.json
Line 31 in bac1765
but we are not running tests on PHP 7.3:
mockery/.github/workflows/tests.yml
Line 18 in bac1765
The text was updated successfully, but these errors were encountered: