Skip to content

Commit f074529

Browse files
bug #40610 Fixed bugs found by psalm (Nyholm)
This PR was squashed before being merged into the 4.4 branch. Discussion ---------- Fixed bugs found by psalm | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | When running psalm for branch 4.4, we get around 1500 errors. I browsed though them all and here is a small PR with the actual bugs I think should be fixed. I'll make review comments about them below. Commits ------- 0a0cd7a274 Fixed bugs found by psalm
2 parents 04a7259 + 0851bad commit f074529

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Definition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function setChanges(array $changes)
102102
/**
103103
* Sets a factory.
104104
*
105-
* @param string|array|Reference $factory A PHP function, reference or an array containing a class/Reference and a method to call
105+
* @param string|array|Reference|null $factory A PHP function, reference or an array containing a class/Reference and a method to call
106106
*
107107
* @return $this
108108
*/

0 commit comments

Comments
 (0)