-
Notifications
You must be signed in to change notification settings - Fork 5
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
fix: splat operator for PHP 7.4 #487
Conversation
Version
There are 0 BREAKING CHANGE, 0 feature, 1 fix |
Front-end summary Node 18
|
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.
LGTM
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.
This is unusual to try catch in test. Why do you need this?
try { | ||
$subject = $this->subject; | ||
$subject([ | ||
['resourceId' => $mockDelivery->getUri(), 'fileSystemId' => 'dataStore'], // check assoc array |
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.
['resourceId' => $mockDelivery->getUri(), 'fileSystemId' => 'dataStore'], // check assoc array | |
[ | |
'resourceId' => $mockDelivery->getUri(), | |
'fileSystemId' => 'dataStore' | |
], // check assoc array |
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.
to fail the same case on PHP 7.4, otherwise it is not obvious why I'm making instance of $subject twice with different input
what do you suggest?
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.
- New code is covered by tests (if applicable)
- Tests are running successfully (old and new ones) on my local machine (if applicable)
- New code is respecting code style rules
- New code is respecting best practices
- New code is not subject to concurrency issues (if applicable)
- Feature is working correctly on my local machine (if applicable)
- Acceptance criteria are respected
- Pull request title and description are meaningful
fixes error on PHP below 8.1:
Fatal error: Cannot unpack array with string keys in ...