File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -693,6 +693,8 @@ public static function selectFromTypes(
693693
694694 /**
695695 * @param ParametersAcceptor[] $acceptors
696+ *
697+ * @return ($acceptors is array<CallableParametersAcceptor> ? CallableParametersAcceptor : ExtendedParametersAcceptor)
696698 */
697699 public static function combineAcceptors (array $ acceptors ): ExtendedParametersAcceptor
698700 {
Original file line number Diff line number Diff line change 4747use function array_filter ;
4848use function array_intersect_key ;
4949use function array_map ;
50- use function array_merge ;
5150use function array_shift ;
5251use function array_unique ;
5352use function array_values ;
@@ -1144,7 +1143,7 @@ public function getCallableParametersAcceptors(ClassMemberAccessAnswerer $scope)
11441143
11451144 if (count ($ yesAcceptors ) > 0 ) {
11461145 $ acceptors = $ yesAcceptors ;
1147- } elseif (count ($ maybeAcceptors ) > 0 ) {
1146+ } elseif (count ($ maybeAcceptors ) > 0 ) {
11481147 $ acceptors = $ maybeAcceptors ;
11491148 } else {
11501149 throw new ShouldNotHappenException ();
You can’t perform that action at this time.
0 commit comments