@@ -5273,14 +5273,6 @@ public function testArrayFunctions(
5273
5273
5274
5274
public function dataFunctions (): array
5275
5275
{
5276
- $ strSplitDefaultReturnType = 'non-empty-list<string>|false ' ;
5277
- if (PHP_VERSION_ID >= 80000 ) {
5278
- $ strSplitDefaultReturnType = 'non-empty-list<string> ' ;
5279
- }
5280
- if (PHP_VERSION_ID >= 80200 ) {
5281
- $ strSplitDefaultReturnType = 'list<string> ' ;
5282
- }
5283
-
5284
5276
return [
5285
5277
[
5286
5278
'string ' ,
@@ -5470,42 +5462,6 @@ public function dataFunctions(): array
5470
5462
'(array{sec: int, usec: int, minuteswest: int, dsttime: int}|float) ' ,
5471
5463
'$gettimeofdayBenevolent ' ,
5472
5464
],
5473
- [
5474
- $ strSplitDefaultReturnType ,
5475
- '$strSplitConstantStringWithoutDefinedParameters ' ,
5476
- ],
5477
- [
5478
- 'array{ \'a \', \'b \', \'c \', \'d \', \'e \', \'f \'} ' ,
5479
- '$strSplitConstantStringWithoutDefinedSplitLength ' ,
5480
- ],
5481
- [
5482
- PHP_VERSION_ID < 80200 ? 'non-empty-list<string> ' : 'list<string> ' ,
5483
- '$strSplitStringWithoutDefinedSplitLength ' ,
5484
- ],
5485
- [
5486
- 'array{ \'a \', \'b \', \'c \', \'d \', \'e \', \'f \'} ' ,
5487
- '$strSplitConstantStringWithOneSplitLength ' ,
5488
- ],
5489
- [
5490
- 'array{ \'abcdef \'} ' ,
5491
- '$strSplitConstantStringWithGreaterSplitLengthThanStringLength ' ,
5492
- ],
5493
- [
5494
- 'false ' ,
5495
- '$strSplitConstantStringWithFailureSplitLength ' ,
5496
- ],
5497
- [
5498
- $ strSplitDefaultReturnType ,
5499
- '$strSplitConstantStringWithInvalidSplitLengthType ' ,
5500
- ],
5501
- [
5502
- "array{'a', 'b', 'c', 'd', 'e', 'f'}|array{'g', 'h', 'i', 'j', 'k', 'l'} " ,
5503
- '$strSplitConstantStringWithVariableStringAndConstantSplitLength ' ,
5504
- ],
5505
- [
5506
- $ strSplitDefaultReturnType ,
5507
- '$strSplitConstantStringWithVariableStringAndVariableSplitLength ' ,
5508
- ],
5509
5465
// parse_url
5510
5466
[
5511
5467
'array|int|string|false|null ' ,
@@ -8956,138 +8912,6 @@ public function testPhp73Functions(
8956
8912
);
8957
8913
}
8958
8914
8959
- public function dataPhp74Functions (): array
8960
- {
8961
- return [
8962
- [
8963
- PHP_VERSION_ID < 80000 ? 'list<string>|false ' : 'list<string> ' ,
8964
- '$mbStrSplitConstantStringWithoutDefinedParameters ' ,
8965
- ],
8966
- [
8967
- 'array{ \'a \', \'b \', \'c \', \'d \', \'e \', \'f \'} ' ,
8968
- '$mbStrSplitConstantStringWithoutDefinedSplitLength ' ,
8969
- ],
8970
- [
8971
- 'list<string> ' ,
8972
- '$mbStrSplitStringWithoutDefinedSplitLength ' ,
8973
- ],
8974
- [
8975
- 'array{ \'a \', \'b \', \'c \', \'d \', \'e \', \'f \'} ' ,
8976
- '$mbStrSplitConstantStringWithOneSplitLength ' ,
8977
- ],
8978
- [
8979
- 'array{ \'abcdef \'} ' ,
8980
- '$mbStrSplitConstantStringWithGreaterSplitLengthThanStringLength ' ,
8981
- ],
8982
- [
8983
- 'false ' ,
8984
- '$mbStrSplitConstantStringWithFailureSplitLength ' ,
8985
- ],
8986
- [
8987
- PHP_VERSION_ID < 80000 ? 'list<string>|false ' : 'list<string> ' ,
8988
- '$mbStrSplitConstantStringWithInvalidSplitLengthType ' ,
8989
- ],
8990
- [
8991
- "array{'a', 'b', 'c', 'd', 'e', 'f'}|array{'g', 'h', 'i', 'j', 'k', 'l'} " ,
8992
- '$mbStrSplitConstantStringWithVariableStringAndConstantSplitLength ' ,
8993
- ],
8994
- [
8995
- PHP_VERSION_ID < 80000 ? 'list<string>|false ' : 'list<string> ' ,
8996
- '$mbStrSplitConstantStringWithVariableStringAndVariableSplitLength ' ,
8997
- ],
8998
- [
8999
- "array{'a', 'b', 'c', 'd', 'e', 'f'} " ,
9000
- '$mbStrSplitConstantStringWithOneSplitLengthAndValidEncoding ' ,
9001
- ],
9002
- [
9003
- 'false ' ,
9004
- '$mbStrSplitConstantStringWithOneSplitLengthAndInvalidEncoding ' ,
9005
- ],
9006
- [
9007
- PHP_VERSION_ID < 80000 ? 'list<string>|false ' : 'list<string> ' ,
9008
- '$mbStrSplitConstantStringWithOneSplitLengthAndVariableEncoding ' ,
9009
- ],
9010
- [
9011
- "array{'abcdef'} " ,
9012
- '$mbStrSplitConstantStringWithGreaterSplitLengthThanStringLengthAndValidEncoding ' ,
9013
- ],
9014
- [
9015
- 'false ' ,
9016
- '$mbStrSplitConstantStringWithGreaterSplitLengthThanStringLengthAndInvalidEncoding ' ,
9017
- ],
9018
- [
9019
- PHP_VERSION_ID < 80000 ? 'list<string>|false ' : 'list<string> ' ,
9020
- '$mbStrSplitConstantStringWithGreaterSplitLengthThanStringLengthAndVariableEncoding ' ,
9021
- ],
9022
- [
9023
- 'false ' ,
9024
- '$mbStrSplitConstantStringWithFailureSplitLengthAndValidEncoding ' ,
9025
- ],
9026
- [
9027
- 'false ' ,
9028
- '$mbStrSplitConstantStringWithFailureSplitLengthAndInvalidEncoding ' ,
9029
- ],
9030
- [
9031
- 'false ' ,
9032
- '$mbStrSplitConstantStringWithFailureSplitLengthAndVariableEncoding ' ,
9033
- ],
9034
- [
9035
- PHP_VERSION_ID < 80000 ? 'list<string>|false ' : 'list<string> ' ,
9036
- '$mbStrSplitConstantStringWithInvalidSplitLengthTypeAndValidEncoding ' ,
9037
- ],
9038
- [
9039
- 'false ' ,
9040
- '$mbStrSplitConstantStringWithInvalidSplitLengthTypeAndInvalidEncoding ' ,
9041
- ],
9042
- [
9043
- PHP_VERSION_ID < 80000 ? 'list<string>|false ' : 'list<string> ' ,
9044
- '$mbStrSplitConstantStringWithInvalidSplitLengthTypeAndVariableEncoding ' ,
9045
- ],
9046
- [
9047
- "array{'a', 'b', 'c', 'd', 'e', 'f'}|array{'g', 'h', 'i', 'j', 'k', 'l'} " ,
9048
- '$mbStrSplitConstantStringWithVariableStringAndConstantSplitLengthAndValidEncoding ' ,
9049
- ],
9050
- [
9051
- 'false ' ,
9052
- '$mbStrSplitConstantStringWithVariableStringAndConstantSplitLengthAndInvalidEncoding ' ,
9053
- ],
9054
- [
9055
- PHP_VERSION_ID < 80000 ? 'list<string>|false ' : 'list<string> ' ,
9056
- '$mbStrSplitConstantStringWithVariableStringAndConstantSplitLengthAndVariableEncoding ' ,
9057
- ],
9058
- [
9059
- PHP_VERSION_ID < 80000 ? 'list<string>|false ' : 'list<string> ' ,
9060
- '$mbStrSplitConstantStringWithVariableStringAndVariableSplitLengthAndValidEncoding ' ,
9061
- ],
9062
- [
9063
- 'false ' ,
9064
- '$mbStrSplitConstantStringWithVariableStringAndVariableSplitLengthAndInvalidEncoding ' ,
9065
- ],
9066
- [
9067
- PHP_VERSION_ID < 80000 ? 'list<string>|false ' : 'list<string> ' ,
9068
- '$mbStrSplitConstantStringWithVariableStringAndVariableSplitLengthAndVariableEncoding ' ,
9069
- ],
9070
- ];
9071
- }
9072
-
9073
- /**
9074
- * @dataProvider dataPhp74Functions
9075
- */
9076
- public function testPhp74Functions (
9077
- string $ description ,
9078
- string $ expression ,
9079
- ): void
9080
- {
9081
- if (PHP_VERSION_ID < 70400 ) {
9082
- $ this ->markTestSkipped ('Test requires PHP 7.4 ' );
9083
- }
9084
- $ this ->assertTypes (
9085
- __DIR__ . '/data/php74_functions.php ' ,
9086
- $ description ,
9087
- $ expression ,
9088
- );
9089
- }
9090
-
9091
8915
public function dataUnionMethods (): array
9092
8916
{
9093
8917
return [
0 commit comments