Skip to content

Commit

Permalink
Fix codestyle and linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
SerafimArts committed Mar 17, 2024
1 parent 3c51e6c commit b7e85db
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
9 changes: 8 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
}
},
"require-dev": {
"symfony/yaml": "^5.4|^6.0|^7.0",
"rybakit/msgpack": "^0.9|^1.0",
"symfony/config": "^5.4|^6.0|^7.0",
"symfony/dependency-injection": "^5.4|^6.0|^7.0",
"symfony/http-kernel": "^5.4|^6.0|^7.0",
"friendsofphp/php-cs-fixer": "^3.49",
"phpunit/phpunit": "^10.5",
"symfony/var-dumper": "^5.4|^6.0|^7.0",
Expand All @@ -27,7 +32,9 @@
"ext-json": "Adds JSON decoder and encoder",
"symfony/yaml": "Adds YAML decoder and encoder",
"rybakit/msgpack": "Adds MSGPACK decoder and encoder",
"symfony/http-kernel": "Adds Symfony Bundle support (PewPew\\HttpFactory\\HttpFactoryBundle)"
"symfony/http-kernel": "For Symfony Bundle support",
"symfony/config": "For Symfony Bundle support",
"symfony/dependency-injection": "For Symfony Bundle support"
},
"extra": {
"branch-alias": {
Expand Down
1 change: 1 addition & 0 deletions src/Driver/MessagePackDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ protected function fromString(string $data): array|object
}

if (\is_object($result) || \is_array($result)) {
/** @var array|object */
return $result;
}

Expand Down
1 change: 1 addition & 0 deletions src/Driver/YamlDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ protected function fromString(string $data): array|object

protected function toString(mixed $data): string
{
/** @var string */
return Yaml::dump($data, 4, 2);
}
}

0 comments on commit b7e85db

Please sign in to comment.