Dev: Add the param type.

This commit is contained in:
ping-yee 2023-08-04 21:38:25 +08:00
parent 336a86a9b0
commit a9328774d1
No known key found for this signature in database
GPG Key ID: C548278C3B604B42

View File

@ -29,6 +29,9 @@ class SecurityException extends FrameworkException implements HTTPExceptionInter
/**
* Throws when the source string contains invalid UTF-8 characters.
*
* @param string $source The source string
* @param string $string The invalid string
*
* @return static
*/
public static function forInvalidUTF8Chars(string $source, string $string)
@ -42,6 +45,9 @@ class SecurityException extends FrameworkException implements HTTPExceptionInter
/**
* Throws when the source string contains invalid control characters.
*
* @param string $source The source string
* @param string $string The invalid string
*
* @return static
*/
public static function forInvalidControlChars(string $source, string $string)