Compare commits
No commits in common. "f905d02577c53fc898256ebbe49d3f46f1c462a9" and "2a5eac7450a7390cf182cdd779b522390578084a" have entirely different histories.
f905d02577
...
2a5eac7450
17
README.md
17
README.md
|
@ -1,18 +1,3 @@
|
|||
[![Build Status](https://ci.sergio.am/api/badges/code/xrg.es/status.svg)](https://ci.sergio.am/code/xrg.es)
|
||||
[![Build Status](https://drone.xrg.io/api/badges/code/xrg.es/status.svg)](https://drone.xrg.io/code/xrg.es)
|
||||
|
||||
For more info: `cd docker`
|
||||
|
||||
# [PHP Regular Expressions tester](http://xrg.es)
|
||||
|
||||
Source code, ofc.
|
||||
|
||||
## Thanks to
|
||||
|
||||
- Sergio López [@slopezbustos](http://twitter.com/slopezbustos)
|
||||
- Jordi Rivero [@jrivero](http://twitter.com/jrivero)
|
||||
- Jorge Massanet [@Percewall](http://twitter.com/Percewall)
|
||||
- DigitalVirgo I+D team&co-workers <https://www.digitalvirgo.com>
|
||||
|
||||
## Copyright and license
|
||||
|
||||
Copyright 2014+ Sergio Álvarez [the MIT license](LICENSE).
|
||||
|
|
|
@ -18,10 +18,7 @@ class PregResponse
|
|||
public readonly ?string $returnValue,
|
||||
) {
|
||||
if (preg_last_error() !== PREG_NO_ERROR) {
|
||||
$error = error_get_last();
|
||||
$detail = preg_last_error() === PREG_INTERNAL_ERROR && !is_null($error) ? (': ' . $error['message']) : '';
|
||||
|
||||
throw new Exception('preg_last_error() = ' . preg_last_error_msg() . $detail);
|
||||
throw new Exception('preg_last_error() = '. preg_last_error_msg());
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue