Skip to content

Commit

Permalink
Simplify FQNs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack97 committed Jul 26, 2021
1 parent 0e6160c commit c8574a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/TypeReconciliation/TypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1075,10 +1075,10 @@ function consume($input): void{}'
],
'notDateTimeWithDateTimeInterface' => [
'<?php
function foo(\DateTimeInterface $dateTime): DateTimeInterface {
function foo(DateTimeInterface $dateTime): DateTimeInterface {
$dateInterval = new DateInterval("P1D");
if ($dateTime instanceof \DateTime) {
if ($dateTime instanceof DateTime) {
$dateTime->add($dateInterval);
return $dateTime;
Expand All @@ -1090,10 +1090,10 @@ function foo(\DateTimeInterface $dateTime): DateTimeInterface {
],
'notDateTimeImmutableWithDateTimeInterface' => [
'<?php
function foo(\DateTimeInterface $dateTime): DateTimeInterface {
function foo(DateTimeInterface $dateTime): DateTimeInterface {
$dateInterval = new DateInterval("P1D");
if ($dateTime instanceof \DateTimeImmutable) {
if ($dateTime instanceof DateTimeImmutable) {
return $dateTime->add($dateInterval);
} else {
$dateTime->add($dateInterval);
Expand Down

0 comments on commit c8574a6

Please sign in to comment.