| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 18 | 
| Code Lines | 14 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 14 | 
| CRAP Score | 1 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 18 | 3 | public function __invoke(array $options)  | 
            |
| 19 |     { | 
            ||
| 20 | 3 | $handler = $this->getHandlerManager()->get($options['handler']);  | 
            |
| 21 | 3 | $activationStrategy = $this->getActivationStrategy($options);  | 
            |
| 22 | 3 | $bufferSize = (int) ($options['bufferSize'] ?? 0);  | 
            |
| 23 | 3 | $bubble = (boolean) ($options['bubble'] ?? true);  | 
            |
| 24 | 3 | $stopBuffering = (boolean) ($options['stopBuffering'] ?? true);  | 
            |
| 25 | 3 | $passthruLevel = $options['passthruLevel'] ?? null;  | 
            |
| 26 | |||
| 27 | 3 | return new FingersCrossedHandler(  | 
            |
| 28 | 3 | $handler,  | 
            |
| 
                                                                                                    
                        
                         | 
                |||
| 29 | 3 | $activationStrategy,  | 
            |
| 30 | 3 | $bufferSize,  | 
            |
| 31 | 3 | $bubble,  | 
            |
| 32 | 3 | $stopBuffering,  | 
            |
| 33 | 3 | $passthruLevel  | 
            |
| 34 | );  | 
            ||
| 35 | }  | 
            ||
| 36 | |||
| 52 | 
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: