Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
verfriemelt-dot-org committed Dec 15, 2022
1 parent f1aa6dd commit 4ef03b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Type/Php/DateIntervalDynamicReturnTypeExtension.php
@@ -1,4 +1,4 @@
<?php declare( strict_types = 1 );
<?php declare(strict_types = 1);

namespace PHPStan\Type\Php;

Expand Down
1 change: 1 addition & 0 deletions tests/PHPStan/Analyser/data/bug-8442.php
Expand Up @@ -34,6 +34,7 @@ function () {

assertType('false', DateInterval::createFromDateString($interval));

assertType('DateInterval|false',DateInterval::createFromDateString(str_shuffle('1 day')));
assertType('DateInterval|false',DateInterval::createFromDateString());
assertType('DateInterval|false',DateInterval::createFromDateString(new stdClass()));
};
Expand Down

0 comments on commit 4ef03b5

Please sign in to comment.