| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function __invoke(ReflectionFunctionAbstract $fromFunction, ReflectionFunctionAbstract $toFunction) : Changes |
||
| 28 | { |
||
| 29 | $fromRequiredParameters = $fromFunction->getNumberOfRequiredParameters(); |
||
| 30 | $toRequiredParameters = $toFunction->getNumberOfRequiredParameters(); |
||
| 31 | |||
| 32 | if ($fromRequiredParameters >= $toRequiredParameters) { |
||
| 33 | return Changes::empty(); |
||
| 34 | } |
||
| 35 | |||
| 36 | return Changes::fromList(Change::changed( |
||
| 37 | sprintf( |
||
| 38 | 'The number of required arguments for %s increased from %d to %d', |
||
| 39 | $this->formatFunction->__invoke($fromFunction), |
||
| 40 | $fromRequiredParameters, |
||
| 41 | $toRequiredParameters |
||
| 42 | ), |
||
| 43 | true |
||
| 44 | )); |
||
| 47 |