Skip to content

Commit 3b01aef

Browse files
authored
Merge pull request #21 from bookboon/hotfix/added-return-type
feat: add return type and increase req version of jsonld-client
2 parents 34f02c1 + 96cbc39 commit 3b01aef

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

ApiBundle.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
namespace Bookboon\ApiBundle;
44

55
use Bookboon\ApiBundle\DependencyInjection\BookboonApiExtension;
6+
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
67
use Symfony\Component\HttpKernel\Bundle\Bundle;
78

89
class ApiBundle extends Bundle
910
{
10-
public function getContainerExtension()
11+
public function getContainerExtension() : ?ExtensionInterface
1112
{
1213
return new BookboonApiExtension();
1314
}

DependencyInjection/BookboonApiExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ public function load(array $configs, ContainerBuilder $container)
3939
$loader->load('services.yml');
4040
}
4141

42-
public function getAlias()
42+
public function getAlias() : string
4343
{
4444
return 'bookboonapi';
4545
}
4646

47-
public function getXsdValidationBasePath()
47+
public function getXsdValidationBasePath() : string
4848
{
4949
return 'http://bookboon.com/schema/dic/' . $this->getAlias();
5050
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"symfony/http-kernel": "^5.0|^6.0",
2020
"symfony/config": "^5.0|^6.0",
2121
"symfony/cache": "^5.0|^6.0",
22-
"bookboon/jsonld-client": "^2.4",
22+
"bookboon/jsonld-client": "^2.6",
2323
"bookboon/api-models-php": "^1.2",
2424
"bookboon/oauth2-client-php": "^1.0"
2525
},

0 commit comments

Comments
 (0)