Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b560ec4

Browse files
committed
bug #44028 [ErrorHandler] Fix FlattenException::setPrevious argument typing (welcoMattic)
This PR was merged into the 4.4 branch. Discussion ---------- [ErrorHandler] Fix FlattenException::setPrevious argument typing | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | Fix #44024 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT | Doc PR | <!-- required for new features --> The setter didn't accept `null` value, while the getter can return `null`. It can be a fix for the linked issue, but I'm not 100% sure about the cause of the issue (I'll try to make a reproducer soon). In the meantime, this typing bug seems to fix at least the case explained in the issue. Commits ------- 64143dd Fix FlattenException::setPrevious argument typing
2 parents 4cad28f + 64143dd commit b560ec4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/ErrorHandler/Exception/FlattenException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ public function getPrevious()
276276
/**
277277
* @return $this
278278
*/
279-
final public function setPrevious(LegacyFlattenException $previous): self
279+
final public function setPrevious(?LegacyFlattenException $previous): self
280280
{
281281
$this->previous = $previous;
282282

0 commit comments

Comments
 (0)