Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"devDependencies": {
"prettier": "^3.8.1",
"@prettier/plugin-php": "^0.24.0",
"@prettier/plugin-php": "^0.25.0",
"@stoplight/spectral-cli": "^6.15.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class BinaryContentHandler extends ContentHandler {
*/
protected function _encode(mixed $content = null, ?Response $context = null): mixed {
# We cannot encode error messages. If an error, rethrow it to be handled by the default Response handler
if (!$context instanceof Success) {
if (!($context instanceof Success)) {
throw $context;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ResourceLinkSet {
) {
# Throw an error if any $resource_links value is not a ResourceLink or ResourceLinkSet object
foreach ($this->resource_links as $resource_link) {
if (!$resource_link instanceof ResourceLink and !$resource_link instanceof ResourceLinkSet) {
if (!($resource_link instanceof ResourceLink) and !($resource_link instanceof ResourceLinkSet)) {
throw new ServerError(
message: 'ResourceLinkSets can only contain ResourceLink and ResourceLinkSet objects.',
response_id: 'RESOURCE_LINK_SET_CONTAINS_NON_RESOURCE_LINK',
Expand Down
Loading