| Conditions | 2 | 
| Paths | 3 | 
| Total Lines | 30 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 33 | $this->eventDispatcher  | 
            ||
| 34 | );  | 
            ||
| 35 | }  | 
            ||
| 36 | |||
| 37 | public function testFailCall(): void  | 
            ||
| 38 |     { | 
            ||
| 39 | $data = [  | 
            ||
| 40 | 'ID_Application' => 123,  | 
            ||
| 41 | Skautis\User::ID_LOGIN => 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',  | 
            ||
| 42 | ];  | 
            ||
| 43 | $webService = $this->wsFactory->createWebService(  | 
            ||
| 44 | 'https://test-is.skaut.cz/JunakWebservice/UserManagement.asmx?WSDL',  | 
            ||
| 45 | $data  | 
            ||
| 46 | );  | 
            ||
| 47 | |||
| 48 |         $preEventCheck = static function ($obj): bool { | 
            ||
| 49 | return $obj instanceof Skautis\Wsdl\Event\RequestPreEvent;  | 
            ||
| 50 | };  | 
            ||
| 51 | |||
| 52 |         $failEventCheck = static function ($obj): bool { | 
            ||
| 53 | return $obj instanceof Skautis\Wsdl\Event\RequestFailEvent;  | 
            ||
| 54 | };  | 
            ||
| 55 | |||
| 56 |         $this->eventDispatcher->expects('dispatch')->withArgs($preEventCheck)->once(); | 
            ||
| 57 |         $this->eventDispatcher->expects('dispatch')->withArgs($failEventCheck)->once(); | 
            ||
| 58 | |||
| 59 | $this->expectException(SkautisException::class);  | 
            ||
| 60 | $webService->UserDetail();  | 
            ||
| 61 | }  | 
            ||
| 62 | }  | 
            ||
| 63 | 
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..