Skip to content

Commit b231587

Browse files
authored
Fix (#3)
1 parent 8bca68d commit b231587

File tree

3 files changed

+47
-47
lines changed

3 files changed

+47
-47
lines changed

composer.json

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
11
{
2-
"name": "yoanm/symfony-jsonrpc-http-server-swagger-doc",
3-
"description": "Symfony bundle for easy JSON-RPC server Swagger 2.0 documentation",
4-
"license": "MIT",
5-
"minimum-stability": "dev",
6-
"type": "library",
7-
"support": {
8-
"issues": "https://github.com/yoanm/symfony-jsonrpc-http-server-swagger-doc/issues"
9-
},
10-
"authors": [
11-
{
12-
"name": "Yoanm",
13-
"email": "yoanm@users.noreply.github.com",
14-
"role": "Developer"
15-
}
16-
],
17-
"autoload": {
18-
"psr-4": {
19-
"Yoanm\\SymfonyJsonRpcHttpServerSwaggerDoc\\": "src"
20-
}
21-
},
22-
"autoload-dev": {
23-
"psr-4": {
24-
"Tests\\": "tests",
25-
"Tests\\Functional\\BehatContext\\": "features/bootstrap"
26-
}
27-
},
28-
"require": {
29-
"php": ">=7.1",
30-
"yoanm/jsonrpc-server-doc-sdk": "dev-release/1.0.0",
31-
"yoanm/jsonrpc-http-server-swagger-doc-sdk": "dev-release/1.0.0",
32-
"yoanm/symfony-jsonrpc-http-server-doc": "dev-release/0.1.0",
33-
"symfony/http-foundation": "^3.0 || ^4.0",
34-
"symfony/http-kernel": "^3.0 || ^4.0",
35-
"symfony/config": "^3.0 || ^4.0",
36-
"symfony/dependency-injection": "^3.0 || ^4.0"
37-
},
38-
"require-dev": {
39-
"behat/behat": "~3.0",
40-
"squizlabs/php_codesniffer": "3.*",
41-
"phpunit/phpunit": "^6.0 || ^7.0",
42-
"matthiasnoback/symfony-dependency-injection-test": "^2.0 || ^3.0",
43-
"matthiasnoback/symfony-config-test": "^3.0 || ^4.0",
44-
"symfony/framework-bundle": "^3.4",
45-
"yoanm/php-unit-extended": "~1.0"
2+
"name": "yoanm/symfony-jsonrpc-http-server-swagger-doc",
3+
"description": "Symfony bundle for easy JSON-RPC server Swagger 2.0 documentation",
4+
"license": "MIT",
5+
"minimum-stability": "dev",
6+
"type": "library",
7+
"support": {
8+
"issues": "https://github.com/yoanm/symfony-jsonrpc-http-server-swagger-doc/issues"
9+
},
10+
"authors": [
11+
{
12+
"name": "Yoanm",
13+
"email": "yoanm@users.noreply.github.com",
14+
"role": "Developer"
4615
}
16+
],
17+
"autoload": {
18+
"psr-4": {
19+
"Yoanm\\SymfonyJsonRpcHttpServerSwaggerDoc\\": "src"
20+
}
21+
},
22+
"autoload-dev": {
23+
"psr-4": {
24+
"Tests\\": "tests",
25+
"Tests\\Functional\\BehatContext\\": "features/bootstrap"
26+
}
27+
},
28+
"require": {
29+
"php": ">=7.1",
30+
"yoanm/jsonrpc-server-doc-sdk": "dev-release/1.0.0",
31+
"yoanm/jsonrpc-http-server-swagger-doc-sdk": "dev-release/1.0.0",
32+
"yoanm/symfony-jsonrpc-http-server-doc": "dev-release/0.1.0",
33+
"symfony/http-foundation": "^3.0 || ^4.0",
34+
"symfony/http-kernel": "^3.0 || ^4.0",
35+
"symfony/config": "^3.0 || ^4.0",
36+
"symfony/dependency-injection": "^3.0 || ^4.0"
37+
},
38+
"require-dev": {
39+
"behat/behat": "~3.0",
40+
"squizlabs/php_codesniffer": "3.*",
41+
"phpunit/phpunit": "^6.0 || ^7.0",
42+
"matthiasnoback/symfony-dependency-injection-test": "^2.0 || ^3.0",
43+
"matthiasnoback/symfony-config-test": "^3.0 || ^4.0",
44+
"symfony/framework-bundle": "^3.4",
45+
"yoanm/php-unit-extended": "~1.0"
46+
}
4747
}

src/Event/SwaggerDocCreatedEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function __construct(
2929
}
3030

3131
/**
32-
* @return HttpServerDoc
32+
* @return array
3333
*/
3434
public function getSwaggerDoc()
3535
{

src/Provider/DocProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function __construct(
3939
*
4040
* @return array
4141
*/
42-
public function getDoc($host = null)
42+
public function getDoc($host = null) : array
4343
{
4444
$rawDoc = $this->serverDocCreator->create($host);
4545
$swaggerDoc = $this->docNormalizer->normalize($rawDoc);
@@ -53,7 +53,7 @@ public function getDoc($host = null)
5353
/**
5454
* {@inheritdoc}
5555
*/
56-
public function supports($filename, $host = null)
56+
public function supports($filename, $host = null) : bool
5757
{
5858
return 'swagger.json' === $filename;
5959
}

0 commit comments

Comments
 (0)