| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | function customErrorHandler($errno, $errstr, $errfile, $errline) { |
||
| 8 | // We know about this deprecation warning exists and it's already been |
||
| 9 | // fixed in the 2.x branch. For BC reasons in the 1.x branch, we'll |
||
| 10 | // ignore this warning to let tests pass. |
||
| 11 | if ($errno === E_DEPRECATED) { |
||
| 12 | if ($errstr === "Function ReflectionType::__toString() is deprecated") { |
||
| 13 | return true; |
||
| 14 | } |
||
| 15 | } |
||
| 16 | |||
| 17 | // Any other error should be left up to PHPUnit to handle |
||
| 18 | return \PHPUnit_Util_ErrorHandler::handleError($errno, $errstr, $errfile, $errline); |
||
| 19 | } |
||
| 20 | |||
| 23 |