Skip to content

Commit 0f0a096

Browse files
committed
Add phpDoc describing data types
1 parent beaba14 commit 0f0a096

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/Config/Parser/ParserInterface.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,10 @@
99

1010
interface ParserInterface
1111
{
12+
/**
13+
* @param array<string,mixed> $configs
14+
*
15+
* @return array<string,mixed>
16+
*/
1217
public static function parse(SplFileInfo $file, ContainerBuilder $container, array $configs = []): array;
1318
}

src/Definition/Builder/TypeFactory.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ public function __construct(ConfigProcessor $configProcessor, GraphQLServices $g
1919
$this->graphQLServices = $graphQLServices;
2020
}
2121

22+
/**
23+
* @param class-string<Type> $class
24+
*/
2225
public function create(string $class): Type
2326
{
2427
return new $class($this->configProcessor, $this->graphQLServices);

0 commit comments

Comments
 (0)