Skip to content

Commit

Permalink
Merge pull request #417 from cakephp/extend-datetimeimmutable
Browse files Browse the repository at this point in the history
Change only Chronos to extend DateTimeImmutable once again
  • Loading branch information
othercorey authored Sep 23, 2023
2 parents 478b801 + 6db2131 commit e1a5d70
Show file tree
Hide file tree
Showing 8 changed files with 382 additions and 390 deletions.
14 changes: 9 additions & 5 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.10.0@a5effd2d2dddd1a7ea7a0f6a051ce63ff979e356">
<files psalm-version="5.13.1@086b94371304750d1c673315321a55d15fc59015">
<file src="src/Chronos.php">
<ImpureFunctionCall>
<code>array_filter</code>
Expand All @@ -11,12 +11,14 @@
<code>diffForHumans</code>
<code>diffFormatter</code>
<code>format</code>
<code>getTestNow</code>
<code>format</code>
<code>format</code>
<code>format</code>
<code>format</code>
<code>getTimestamp</code>
<code>getTimezone</code>
<code>getWeekendDays</code>
<code>hasRelativeKeywords</code>
<code>hasTestNow</code>
<code>isTimeExpression</code>
<code>now</code>
<code>now</code>
<code>now</code>
Expand Down Expand Up @@ -47,7 +49,6 @@
<code>toDateString</code>
<code>toDateString</code>
<code>toDateString</code>
<code>toDateString</code>
<code>tomorrow</code>
<code>yesterday</code>
</ImpureMethodCall>
Expand Down Expand Up @@ -87,6 +88,9 @@
<InaccessibleProperty>
<code><![CDATA[$instance->f]]></code>
</InaccessibleProperty>
<MissingImmutableAnnotation>
<code>public static function createFromFormat(</code>
</MissingImmutableAnnotation>
</file>
<file src="src/ChronosDate.php">
<ImpureFunctionCall>
Expand Down
Loading

0 comments on commit e1a5d70

Please sign in to comment.