diff options
Diffstat (limited to 'src/Context.php')
-rw-r--r-- | src/Context.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Context.php b/src/Context.php index 6e699c5..138c5c5 100644 --- a/src/Context.php +++ b/src/Context.php @@ -264,7 +264,7 @@ abstract class Context * @param string $str string to be checked * @param bool $isReserved checks if the keyword is reserved * - * @return int + * @return int|null */ public static function isKeyword($str, $isReserved = false) { @@ -289,7 +289,7 @@ abstract class Context * * @param string $str string to be checked * - * @return int the appropriate flag for the operator + * @return int|null the appropriate flag for the operator */ public static function isOperator($str) { @@ -324,7 +324,7 @@ abstract class Context * @param string $str string to be checked * @param mixed $end * - * @return int the appropriate flag for the comment type + * @return int|null the appropriate flag for the comment type */ public static function isComment($str, $end = false) { @@ -394,7 +394,7 @@ abstract class Context * * @param string $str string to be checked * - * @return int the appropriate flag for the symbol type + * @return int|null the appropriate flag for the symbol type */ public static function isSymbol($str) { @@ -420,7 +420,7 @@ abstract class Context * * @param string $str string to be checked * - * @return int the appropriate flag for the string type + * @return int|null the appropriate flag for the string type */ public static function isString($str) { @@ -496,7 +496,7 @@ abstract class Context * @param string $context name of the context or full class name that * defines the context * - * @return string The loaded context. `null` if no context was loaded. + * @return string|null The loaded context. `null` if no context was loaded. */ public static function loadClosest($context = '') { @@ -551,7 +551,7 @@ abstract class Context * @param array|string $str the string to be escaped * @param string $quote quote to be used when escaping * - * @return string + * @return string|array */ public static function escape($str, $quote = '`') { |