Skip to content

Commit b993c03

Browse files
Add return types to tests and final|internal|private methods
1 parent aa675d8 commit b993c03

File tree

5 files changed

+5
-16
lines changed

5 files changed

+5
-16
lines changed

Header/DateHeader.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@ public function setBody($body)
3535
$this->setDateTime($body);
3636
}
3737

38-
/**
39-
* @return \DateTimeImmutable
40-
*/
41-
public function getBody()
38+
public function getBody(): \DateTimeImmutable
4239
{
4340
return $this->getDateTime();
4441
}

Header/IdentificationHeader.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,7 @@ public function setBody($body)
4444
$this->setId($body);
4545
}
4646

47-
/**
48-
* @return array
49-
*/
50-
public function getBody()
47+
public function getBody(): array
5148
{
5249
return $this->getIds();
5350
}

Header/MailboxHeader.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,8 @@ public function setBody($body)
4242

4343
/**
4444
* @throws RfcComplianceException
45-
*
46-
* @return Address
4745
*/
48-
public function getBody()
46+
public function getBody(): Address
4947
{
5048
return $this->getAddress();
5149
}

Header/MailboxListHeader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function setBody($body)
4848
*
4949
* @return Address[]
5050
*/
51-
public function getBody()
51+
public function getBody(): array
5252
{
5353
return $this->getAddresses();
5454
}

Header/PathHeader.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,7 @@ public function setBody($body)
4040
$this->setAddress($body);
4141
}
4242

43-
/**
44-
* @return Address
45-
*/
46-
public function getBody()
43+
public function getBody(): Address
4744
{
4845
return $this->getAddress();
4946
}

0 commit comments

Comments
 (0)