Skip to content

Commit

Permalink
[TypeDeclaration] Add NativeMethodReflection support on ReturnStrictT…
Browse files Browse the repository at this point in the history
…ypeAnalyzer
  • Loading branch information
samsonasik committed Oct 1, 2024
1 parent aa7e3f5 commit f44bb98
Showing 1 changed file with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

namespace Rector\Tests\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictTypedCallRector\Fixture;

use DateTime;

final class DateTimeFormatReturn
{
function aa(DateTime $dateTime)
{
return $dateTime->format('Y-m-d');
}
}

?>
-----
<?php

namespace Rector\Tests\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictTypedCallRector\Fixture;

use DateTime;

final class DateTimeFormatReturn
{
function aa(DateTime $dateTime): string
{
return $dateTime->format('Y-m-d');
}
}

?>

0 comments on commit f44bb98

Please sign in to comment.