Skip to content

Commit dcc1ffe

Browse files
committed
minor symfony#44888 [Config] Fix return type of ExprBuilder::ifEmpty() (gassan)
This PR was merged into the 4.4 branch. Discussion ---------- [Config] Fix return type of `ExprBuilder::ifEmpty()` | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | Deprecations? | no | License | MIT | Doc PR | N/A phpstan probably moans otherwise: Call to an undefined method Symfony\Component\Config\Definition\Builder\NodeParentInterface::scalarNode(). The following code part does not cause any errors: ```php ->ifTrue(function ($v) {return empty($v);}) ``` Commits ------- a525715 Update ExprBuilder.php
2 parents 9cc7c6a + a525715 commit dcc1ffe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Config/Definition/Builder/ExprBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function ifNull()
9191
/**
9292
* Tests if the value is empty.
9393
*
94-
* @return ExprBuilder
94+
* @return $this
9595
*/
9696
public function ifEmpty()
9797
{

0 commit comments

Comments
 (0)