@@ -1030,7 +1030,7 @@ public function getParamsAsArray(): array
10301030 *
10311031 * @return string|null The verified / sanitised / default value
10321032 */
1033- public static function processParameterPeriod ( string $ value = null , string $ default = null , $ withExtended = false ): string |null
1033+ public static function processParameterPeriod ( ? string $ value = null , ? string $ default = null , $ withExtended = false ): string |null
10341034 {
10351035 if ( $ withExtended && !isset ( self ::PERIODS_EXTENDED [ $ value ] ) ) {
10361036 $ value = $ default ?? self ::PERIOD_DEFAULT ;
@@ -1051,7 +1051,7 @@ public static function processParameterPeriod( string $value = null, string $def
10511051 *
10521052 * @return string|null The verified / sanitised / default value
10531053 */
1054- public static function processParameterProtocol ( string $ value = null ): string |null
1054+ public static function processParameterProtocol ( ? string $ value = null ): string |null
10551055 {
10561056 if ( !isset ( self ::PROTOCOLS [ $ value ] ) ) {
10571057 $ value = self ::PROTOCOL_DEFAULT ;
@@ -1068,7 +1068,7 @@ public static function processParameterProtocol( string $value = null ): string|
10681068 * @param string|null $value The user input value
10691069 * @return string|null The verified / sanitised / default value
10701070 */
1071- public static function processParameterRealProtocol ( string $ value = null ): string |null
1071+ public static function processParameterRealProtocol ( ? string $ value = null ): string |null
10721072 {
10731073 if ( !isset ( self ::PROTOCOLS_REAL [ $ value ] ) ) {
10741074 $ value = self ::PROTOCOL_IPV4 ;
@@ -1087,7 +1087,7 @@ public static function processParameterRealProtocol( string $value = null ): str
10871087 *
10881088 * @return string|null The verified / sanitised / default value
10891089 */
1090- public static function processParameterCategory ( string $ value = null , bool $ bits_pkts_only = false ): string |null
1090+ public static function processParameterCategory ( ? string $ value = null , bool $ bits_pkts_only = false ): string |null
10911091 {
10921092 if ( ( $ bits_pkts_only && !isset ( self ::CATEGORIES_BITS_PKTS [$ value ] ) ) || ( !$ bits_pkts_only && !isset ( self ::CATEGORIES [ $ value ] ) ) ) {
10931093 $ value = self ::CATEGORY_DEFAULT ;
@@ -1105,7 +1105,7 @@ public static function processParameterCategory( string $value = null, bool $bit
11051105 *
11061106 * @return string|null The verified / sanitised / default value
11071107 */
1108- public static function processParameterType ( string $ value = null ): string |null
1108+ public static function processParameterType ( ? string $ value = null ): string |null
11091109 {
11101110 if ( !isset ( self ::TYPES [ $ value ] ) ) {
11111111 $ value = self ::TYPE_DEFAULT ;
0 commit comments