Skip to content

Commit 401eae5

Browse files
committed
some strict typing changes were missed
1 parent 54760a1 commit 401eae5

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/Types/AbstractList.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22
/**
33
* This file is part of phpDocumentor.
44
*
@@ -47,7 +47,7 @@ public function __construct(Type $valueType = null, Type $keyType = null)
4747
*
4848
* @return Type
4949
*/
50-
public function getKeyType()
50+
public function getKeyType(): Type
5151
{
5252
if ($this->keyType === null) {
5353
return $this->defaultKeyType;
@@ -61,7 +61,7 @@ public function getKeyType()
6161
*
6262
* @return Type
6363
*/
64-
public function getValueType()
64+
public function getValueType(): Type
6565
{
6666
return $this->valueType;
6767
}
@@ -71,7 +71,7 @@ public function getValueType()
7171
*
7272
* @return string
7373
*/
74-
public function __toString()
74+
public function __toString(): string
7575
{
7676
if ($this->keyType) {
7777
return 'array<' . $this->keyType . ',' . $this->valueType . '>';

src/Types/Collection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22
/**
33
* This file is part of phpDocumentor.
44
*
@@ -58,7 +58,7 @@ public function getFqsen()
5858
*
5959
* @return string
6060
*/
61-
public function __toString()
61+
public function __toString(): string
6262
{
6363
if ($this->keyType === null) {
6464
return $this->fqsen . '<' . $this->valueType . '>';

tests/unit/CollectionResolverTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22
/**
33
* This file is part of phpDocumentor.
44
*

tests/unit/Types/CompoundTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22
/**
33
* This file is part of phpDocumentor.
44
*

0 commit comments

Comments
 (0)