Skip to content

Commit

Permalink
Merge pull request #15 from erasys/update_php_8_2
Browse files Browse the repository at this point in the history
chore: update dependencies to support PHP 8.2
  • Loading branch information
TikTechTo authored Nov 3, 2023
2 parents c03a831 + 765a3f3 commit 11a0c48
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
}
],
"require": {
"php": "^7.4|^8.0",
"illuminate/contracts": "^8.64",
"symfony/yaml": "^5.3",
"php": "^8.2",
"illuminate/contracts": "^10.14.1",
"symfony/yaml": "^v6.3",
"justinrainbow/json-schema": "^5.2"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "^3.6"
"phpunit/phpunit": "^9.6.8",
"squizlabs/php_codesniffer": "^3.7.2"
},
"autoload": {
"psr-4": {
Expand Down
26 changes: 13 additions & 13 deletions src/Spec/v3/AbstractObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,38 +52,38 @@ final public function __set($name, $value)
}

/**
* @param string $offset
*
* @param mixed $offset
* @return bool
*/
final public function offsetExists($offset)
final public function offsetExists(mixed $offset): bool
{
return isset($this->$offset);
}

/**
* @param string $offset
*
* @param mixed $offset
* @return mixed
*/
final public function offsetGet($offset)
final public function offsetGet(mixed $offset): mixed
{
return $this->$offset;
}

/**
* @param string $offset
* @param mixed $value
* @param mixed $offset
* @param mixed $value
* @return void
*/
final public function offsetSet($offset, $value)
final public function offsetSet(mixed $offset, mixed $value): void
{
$this->$offset = $value;
}

/**
* @param string $offset
* @param mixed $offset
* @return void
*/
final public function offsetUnset($offset)
final public function offsetUnset(mixed $offset): void
{
unset($this->$offset);
}
Expand Down Expand Up @@ -201,9 +201,9 @@ public function toYaml(
* in order to be able to export empty objects correctly, so they
* won't be treated as empty arrays.
*
* @return array|stdClass
* @return mixed
*/
public function jsonSerialize()
public function jsonSerialize(): mixed
{
$properties = $this->toArray();
return empty($properties) ? new stdClass() : $properties;
Expand Down

0 comments on commit 11a0c48

Please sign in to comment.