8000 bug #44042 Fix DateIntervalToStringTransformer::transform() doc (BenM… · symfony/symfony@419ccc5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 419ccc5

Browse files
committed
bug #44042 Fix DateIntervalToStringTransformer::transform() doc (BenMorel)
This PR was submitted for the 5.3 branch but it was merged into the 4.4 branch instead. Discussion ---------- Fix DateIntervalToStringTransformer::transform() doc | Q | A | ------------- | --- | Branch? | 5.3 | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | - <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT | Doc PR | - `DateIntervalToStringTransformer::transform()` accepts `null`. Commits ------- 71a9d15 Fix nullable parameter doc
2 parents 24b6bd6 + 71a9d15 commit 419ccc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Form/Extension/Core/DataTransformer/DateIntervalToStringTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function __construct(string $format = 'P%yY%mM%dDT%hH%iM%sS')
3939
/**
4040
* Transforms a DateInterval object into a date string with the configured format.
4141
*
42-
* @param \DateInterval $value A DateInterval object
42+
* @param \DateInterval|null $value A DateInterval object
4343
*
4444
* @return string An ISO 8601 or relative date string like date interval presentation
4545
*

0 commit comments

Comments
 (0)
0