Skip to content

Commit 7da2a0f

Browse files
committed
Add missed type hint on src folder
1 parent c0cd376 commit 7da2a0f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/AnnotationGenerator/ApiPlatformCoreAnnotationGenerator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function generateClassAnnotations(string $className): array
6666
*
6767
* @return array
6868
*/
69-
private function validateClassOperations(array $operations)
69+
private function validateClassOperations(array $operations): array
7070
{
7171
$resolver = new OptionsResolver();
7272
$resolver->setDefaults(['item' => [], 'collection' => []]);
@@ -83,7 +83,7 @@ private function validateClassOperations(array $operations)
8383
*
8484
* @return array
8585
*/
86-
private function validateClassOperationMethodConfig(array $methodConfig)
86+
private function validateClassOperationMethodConfig(array $methodConfig): array
8787
{
8888
$resolver = new OptionsResolver();
8989

src/TypesGenerator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ private function isEnum(\EasyRdf_Resource $type): bool
474474
*
475475
* @return array
476476
*/
477-
private function getParentClasses(\EasyRdf_Resource $resource, array $parentClasses = [])
477+
private function getParentClasses(\EasyRdf_Resource $resource, array $parentClasses = []): array
478478
{
479479
if ([] === $parentClasses) {
480480
return $this->getParentClasses($resource, [$resource->getUri()]);
@@ -509,7 +509,7 @@ private function getParentClasses(\EasyRdf_Resource $resource, array $parentClas
509509
*
510510
* @return array
511511
*/
512-
private function createPropertiesMap(array $types)
512+
private function createPropertiesMap(array $types): array
513513
{
514514
$typesAsString = [];
515515
$map = [];
@@ -592,7 +592,7 @@ private function fieldToAdderRemoverTypeHint(array $field, array $classes): ?str
592592
*
593593
* @return array $class
594594
*/
595-
private function generateField(array $config, array $class, \EasyRdf_Resource $type, $typeName, $propertyName, \EasyRdf_Resource $property = null)
595+
private function generateField(array $config, array $class, \EasyRdf_Resource $type, $typeName, $propertyName, \EasyRdf_Resource $property = null): array
596596
{
597597
$typeConfig = $config['types'][$typeName] ?? null;
598598
$typesDefined = !empty($config['types']);

0 commit comments

Comments
 (0)