| Total Complexity | 4 | 
| Total Lines | 32 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 7 | trait SerializationHelper  | 
            ||
| 8 | { | 
            ||
| 9 | /**  | 
            ||
| 10 | * @deprecated Use serializeToArray  | 
            ||
| 11 | *  | 
            ||
| 12 | * @return string  | 
            ||
| 13 | */  | 
            ||
| 14 | public function serialize()  | 
            ||
| 15 |     { | 
            ||
| 16 | return serialize($this->serializeToArray());  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 17 | }  | 
            ||
| 18 | |||
| 19 | /**  | 
            ||
| 20 | * @deprecated Use unserializeFromArray  | 
            ||
| 21 | *  | 
            ||
| 22 | * @param string $str  | 
            ||
| 23 | *  | 
            ||
| 24 | * @return void  | 
            ||
| 25 | */  | 
            ||
| 26 | public function unserialize($str)  | 
            ||
| 27 |     { | 
            ||
| 28 | $this->unserializeFromArray(unserialize($str));  | 
            ||
| 29 | }  | 
            ||
| 30 | |||
| 31 | public function __serialize(): array  | 
            ||
| 34 | }  | 
            ||
| 35 | |||
| 36 | public function __unserialize(array $data): void  | 
            ||
| 39 | }  | 
            ||
| 40 | }  | 
            ||
| 41 | 
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.