Skip to content

Commit

Permalink
Revert "Merge pull request #3 from WyriHaximus-labs/DEVizzent-openapi…
Browse files Browse the repository at this point in the history
…-31-8.2-deprecations"

This reverts commit aeedbc7, reversing
changes made to c5a294e.
  • Loading branch information
DEVizzent committed Jun 22, 2023
1 parent 7bd2bbf commit 3f4f3d0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/json/JsonReference.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public function getReference(): string
* which is a value of any type other than a resource.
*/
#[\ReturnTypeWillChange]
public function jsonSerialize(): mixed
public function jsonSerialize() //: mixed
{
return (object)['$ref' => $this->getReference()];
}
Expand Down
2 changes: 1 addition & 1 deletion src/spec/OpenApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function performValidation()
*/
public function getMajorVersion()
{
if (is_string($this->openapi) && preg_match(static::PATTERN_VERSION, $this->openapi, $matches)) {
if (preg_match(static::PATTERN_VERSION, $this->openapi, $matches)) {
switch ($matches[1]) {
case '3.0':
return static::VERSION_3_0;
Expand Down
2 changes: 1 addition & 1 deletion src/spec/Paths.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public function offsetExists($offset): bool
* @return PathItem Can return all value types.
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset): mixed
public function offsetGet($offset) //: mixed
{
return $this->getPath($offset);
}
Expand Down
2 changes: 1 addition & 1 deletion src/spec/Responses.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public function offsetExists($offset): bool
* @return mixed Can return all value types.
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset): mixed
public function offsetGet($offset) //: mixed
{
return $this->getResponse($offset);
}
Expand Down

0 comments on commit 3f4f3d0

Please sign in to comment.