-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add PHP 8.2 support to main branch, drop 8.0 support #8264
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -140,13 +140,13 @@ class Raw extends Endpoint implements \LORIS\Middleware\ETagCalculator | |
|
||
$callback = function () use ($mincpath, $fullpath) { | ||
return shell_exec( | ||
"${mincpath}/bin/minctoraw -byte -unsigned -normalize $fullpath" | ||
"{$mincpath}/bin/minctoraw -byte -unsigned -normalize $fullpath" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why switch from simple to complex syntax? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure what's simple or complex about There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For information: https://www.php.net/manual/en/language.types.string.php
So, both worked in this context but the former is deprecated in 8.2. Probably because it can be achieved with the latter. |
||
); | ||
}; | ||
|
||
return (new \LORIS\Http\Response()) | ||
->withHeader('Content-Type', 'application/x.raw') | ||
->withHeader('Content-Disposition', "attachment; filename=${filename}") | ||
->withHeader('Content-Disposition', "attachment; filename={$filename}") | ||
->withBody(new \Laminas\Diactoros\CallbackStream($callback)); | ||
} | ||
|
||
|
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 now a requirement for prod I think.
Http\Client needs that.
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 wasn't changed in this PR, just the version.. can you send a PR to fix if that's wrong now?
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.
Thinking about it, it would be part of Guzzle dependencies.