@@ -80,7 +80,7 @@ public static function reset(): void
80
80
*
81
81
* @return int
82
82
*/
83
- public static function getInt (string $ field , int $ min = null , ?int $ max = null , ?int $ default = null ): int
83
+ public static function getInt (string $ field , ? int $ min = null , ?int $ max = null , ?int $ default = null ): int
84
84
{
85
85
if (!isset (self ::$ data [$ field ])) {
86
86
if ($ default === null ) {
@@ -110,7 +110,7 @@ public static function getInt(string $field, int $min = null, ?int $max = null,
110
110
*
111
111
* @return array
112
112
*/
113
- public static function getInts (string $ field , int $ min = null , int $ max = null , array $ default = null ): array
113
+ public static function getInts (string $ field , ? int $ min = null , ? int $ max = null , ? array $ default = null ): array
114
114
{
115
115
$ arr = self ::getArray ($ field , $ min , $ max , $ default );
116
116
@@ -126,7 +126,7 @@ public static function getInts(string $field, int $min = null, int $max = null,
126
126
*
127
127
* @return array
128
128
*/
129
- public static function getIntsBySplit (string $ field , int $ min = null , int $ max = null , array $ default = null , string $ sep = ', ' ): array
129
+ public static function getIntsBySplit (string $ field , ? int $ min = null , ? int $ max = null , ? array $ default = null , string $ sep = ', ' ): array
130
130
{
131
131
$ arr = self ::getArrayBySplit ($ field , $ min , $ max , $ default , $ sep );
132
132
@@ -141,7 +141,7 @@ public static function getIntsBySplit(string $field, int $min = null, int $max =
141
141
*
142
142
* @return float
143
143
*/
144
- public static function getFloat (string $ field , float $ min = null , float $ max = null , float $ default = null ): float
144
+ public static function getFloat (string $ field , ? float $ min = null , ? float $ max = null , ? float $ default = null ): float
145
145
{
146
146
if (!isset (self ::$ data [$ field ])) {
147
147
if ($ default === null ) {
@@ -173,7 +173,7 @@ public static function getFloat(string $field, float $min = null, float $max = n
173
173
*
174
174
* @return string
175
175
*/
176
- public static function getString (string $ field , int $ minLen = null , int $ maxLen = null , string $ default = null ): string
176
+ public static function getString (string $ field , ? int $ minLen = null , ? int $ maxLen = null , ? string $ default = null ): string
177
177
{
178
178
if (!isset (self ::$ data [$ field ])) {
179
179
if ($ default === null ) {
@@ -206,7 +206,7 @@ public static function getString(string $field, int $minLen = null, int $maxLen
206
206
*
207
207
* @return array
208
208
*/
209
- public static function getStrings (string $ field , int $ min = null , int $ max = null , array $ default = null ): array
209
+ public static function getStrings (string $ field , ? int $ min = null , ? int $ max = null , ? array $ default = null ): array
210
210
{
211
211
if (!isset (self ::$ data [$ field ])) {
212
212
if ($ default === null ) {
@@ -244,7 +244,7 @@ public static function getStrings(string $field, int $min = null, int $max = nul
244
244
*
245
245
* @return array
246
246
*/
247
- public static function getArray (string $ field , int $ min = null , int $ max = null , array $ default = null ): array
247
+ public static function getArray (string $ field , ? int $ min = null , ? int $ max = null , ? array $ default = null ): array
248
248
{
249
249
if (!isset (self ::$ data [$ field ])) {
250
250
if ($ default === null ) {
@@ -280,7 +280,7 @@ public static function getArray(string $field, int $min = null, int $max = null,
280
280
*
281
281
* @return array
282
282
*/
283
- public static function getArrayBySplit (string $ field , int $ min = null , int $ max = null , array $ default = null , string $ sep = ', ' ): array
283
+ public static function getArrayBySplit (string $ field , ? int $ min = null , ? int $ max = null , ? array $ default = null , string $ sep = ', ' ): array
284
284
{
285
285
if (!isset (self ::$ data [$ field ])) {
286
286
if ($ default === null ) {
@@ -315,7 +315,7 @@ public static function getArrayBySplit(string $field, int $min = null, int $max
315
315
*
316
316
* @return array
317
317
*/
318
- public static function getArrayByJSON (string $ field , int $ min = null , int $ max = null , array $ default = null ): array
318
+ public static function getArrayByJSON (string $ field , ? int $ min = null , ? int $ max = null , ? array $ default = null ): array
319
319
{
320
320
if (!isset (self ::$ data [$ field ])) {
321
321
if ($ default === null ) {
@@ -359,7 +359,7 @@ public static function getArrayByJSON(string $field, int $min = null, int $max =
359
359
*
360
360
* @return string
361
361
*/
362
- public static function fmtMinMaxToMsg (string $ prefix , int $ min = null , int $ max = null , string $ sepMsg = 'and ' ): string
362
+ public static function fmtMinMaxToMsg (string $ prefix , ? int $ min = null , ? int $ max = null , string $ sepMsg = 'and ' ): string
363
363
{
364
364
if ($ min !== null && $ max !== null ) {
365
365
return "$ prefix $ sepMsg must be >= $ min and <= $ max " ;
0 commit comments