| Conditions | 3 |
| Paths | 2 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | public function getHash(): string |
||
| 42 | { |
||
| 43 | $normalizedArguments = array_map(function ($argument) { |
||
| 44 | return is_object($argument) ? spl_object_hash($argument) : $argument; |
||
| 45 | }, $this->getArguments()); |
||
| 46 | |||
| 47 | $prefix = $this->getFunctionName(); |
||
| 48 | if (strpos($prefix, '{closure}') !== false) { |
||
| 49 | $prefix = $this->zeroStack['line']; |
||
| 50 | } |
||
| 51 | |||
| 52 | return md5($prefix.serialize($normalizedArguments)); |
||
| 53 | } |
||
| 54 | |||
| 65 |