Skip to content

Commit

Permalink
use data body
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Sep 15, 2024
1 parent 020176f commit 04be2bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Parser/Attribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -362,15 +362,15 @@ private function getSchemaFromTypeHint(?\ReflectionType $type): string|ContentTy
return Passthru::class;
} elseif ($type->getName() === \DOMDocument::class) {
return ContentType::XML;
} elseif ($type->getName() === \stdClass::class) {
return ContentType::JSON;
} elseif ($type->getName() === StreamInterface::class) {
return ContentType::BINARY;
} elseif ($type->getName() === 'string') {
return ContentType::TEXT;
} elseif ($type->getName() === 'PSX\\Data\\Multipart\\Body') {
} elseif ($type->getName() === 'PSX\\Data\\Body\\Json') {
return ContentType::JSON;
} elseif ($type->getName() === 'PSX\\Data\\Body\\Multipart') {
return ContentType::MULTIPART;
} elseif ($type->getName() === 'array') {
} elseif ($type->getName() === 'PSX\\Data\\Body\\Form') {
return ContentType::FORM;
} elseif (class_exists($type->getName())) {
return $type->getName();
Expand Down

0 comments on commit 04be2bf

Please sign in to comment.