mockery: Mockery 1.6.0 on PHP 7.3 - parse error DefinedTargetClass.php:53

ParseError: syntax error, unexpected '...' (T_ELLIPSIS), expecting ']'

[...]/vendor/mockery/mockery/library/Mockery/Generator/DefinedTargetClass.php:53

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:

https://github.com/mockery/mockery/blob/bac1765cb52bbd3364a870e920cb69cd859ee302/composer.json#L31

but we are not running tests on PHP 7.3:

https://github.com/mockery/mockery/blob/bac1765cb52bbd3364a870e920cb69cd859ee302/.github/workflows/tests.yml#L18

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 1
  • Comments: 15 (6 by maintainers)

Most upvoted comments

Deleted here and on packagist

I think that’s sorted 🤦

https://github.com/mockery/mockery/releases/tag/1.6.1

Again, apologies everyone.

Fuck.

Sorry everyone, I’ve not been paying much attention lately. Will install 7.3 and see how quickly I can get it running.