@@ -264,7 +264,7 @@ abstract class Context
264264 * @param string $str string to be checked
265265 * @param bool $isReserved checks if the keyword is reserved
266266 *
267- * @return int
267+ * @return int|null
268268 */
269269 public static function isKeyword ($ str , $ isReserved = false )
270270 {
@@ -289,7 +289,7 @@ public static function isKeyword($str, $isReserved = false)
289289 *
290290 * @param string $str string to be checked
291291 *
292- * @return int the appropriate flag for the operator
292+ * @return int|null the appropriate flag for the operator
293293 */
294294 public static function isOperator ($ str )
295295 {
@@ -324,7 +324,7 @@ public static function isWhitespace($str)
324324 * @param string $str string to be checked
325325 * @param mixed $end
326326 *
327- * @return int the appropriate flag for the comment type
327+ * @return int|null the appropriate flag for the comment type
328328 */
329329 public static function isComment ($ str , $ end = false )
330330 {
@@ -394,7 +394,7 @@ public static function isNumber($str)
394394 *
395395 * @param string $str string to be checked
396396 *
397- * @return int the appropriate flag for the symbol type
397+ * @return int|null the appropriate flag for the symbol type
398398 */
399399 public static function isSymbol ($ str )
400400 {
@@ -420,7 +420,7 @@ public static function isSymbol($str)
420420 *
421421 * @param string $str string to be checked
422422 *
423- * @return int the appropriate flag for the string type
423+ * @return int|null the appropriate flag for the string type
424424 */
425425 public static function isString ($ str )
426426 {
@@ -496,7 +496,7 @@ public static function load($context = '')
496496 * @param string $context name of the context or full class name that
497497 * defines the context
498498 *
499- * @return string The loaded context. `null` if no context was loaded.
499+ * @return string|null The loaded context. `null` if no context was loaded.
500500 */
501501 public static function loadClosest ($ context = '' )
502502 {
@@ -551,7 +551,7 @@ public static function setMode($mode = '')
551551 * @param array|string $str the string to be escaped
552552 * @param string $quote quote to be used when escaping
553553 *
554- * @return string
554+ * @return string|array
555555 */
556556 public static function escape ($ str , $ quote = '` ' )
557557 {
0 commit comments