@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | /** |
| 43 | 43 | * Adds a pattern with an optional label. |
| 44 | 44 | * |
| 45 | - * @param mixed $pattern Perl style regex. Must be UTF-8 encoded. If its a string, |
|
| 45 | + * @param string $pattern Perl style regex. Must be UTF-8 encoded. If its a string, |
|
| 46 | 46 | * the (, ) lose their meaning unless they form part of |
| 47 | 47 | * a lookahead or lookbehind assertation. |
| 48 | 48 | * @param bool|string $label Label of regex to be returned on a match. Label must be ASCII |
@@ -65,7 +65,6 @@ discard block |
||
| 65 | 65 | * Reference: https://www.php.net/manual/en/regexp.reference.unicode.php |
| 66 | 66 | * |
| 67 | 67 | * @param mixed $pattern Perl style regex. Must be UTF-8 encoded. |
| 68 | - * @param boolean $unicode True for Unicode-aware, false for byte-oriented. |
|
| 69 | 68 | * |
| 70 | 69 | * @author Moisés Braga Ribeiro <[email protected]> |
| 71 | 70 | */ |
@@ -138,7 +137,7 @@ discard block |
||
| 138 | 137 | * |
| 139 | 138 | * @param string $subject String to match against. |
| 140 | 139 | * @param array $split The split result: array containing pre-match, match & post-match strings |
| 141 | - * @return boolean True on success. |
|
| 140 | + * @return string|boolean True on success. |
|
| 142 | 141 | * |
| 143 | 142 | * @author Moisés Braga Ribeiro <[email protected]> |
| 144 | 143 | */ |
@@ -169,7 +168,7 @@ discard block |
||
| 169 | 168 | * @param string $subject String to match against. |
| 170 | 169 | * @param array $split The split result: array containing pre-match, match & post-match strings |
| 171 | 170 | * @param boolean $unicode True for Unicode-aware, false for byte-oriented. |
| 172 | - * @return boolean True on success. |
|
| 171 | + * @return string|boolean True on success. |
|
| 173 | 172 | * |
| 174 | 173 | * @author Christopher Smith <[email protected]> |
| 175 | 174 | */ |