forked from vimeo/psalm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CallMap_80_delta.php
1867 lines (1866 loc) · 101 KB
/
CallMap_80_delta.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php // phpcs:ignoreFile
/**
* This contains the information needed to convert the function signatures for php 8.0 to php 7.4 (and vice versa)
*
* This file has three sections.
* The 'added' section contains function/method names from FunctionSignatureMap (And alternates, if applicable) that do not exist in php 7.4
* The 'removed' section contains the signatures that were removed in php 8.0
* The 'changed' section contains functions for which the signature has changed for php 8.0.
* Each function in the 'changed' section has an 'old' and a 'new' section,
* representing the function as it was in PHP 7.4 and in PHP 8.0, respectively
*
* @see CallMap.php
*
* @phan-file-suppress PhanPluginMixedKeyNoKey (read by Phan when analyzing this file)
*/
return [
'added' => [
'DateTime::createFromInterface' => ['static', 'object'=>'DateTimeInterface'],
'DateTimeImmutable::createFromInterface' => ['static', 'object'=>'DateTimeInterface'],
'PhpToken::getTokenName' => ['string'],
'PhpToken::is' => ['bool', 'kind'=>'string|int|string[]|int[]'],
'PhpToken::isIgnorable' => ['bool'],
'PhpToken::tokenize' => ['list<PhpToken>', 'code'=>'string', 'flags='=>'int'],
'ReflectionClass::getAttributes' => ['list<ReflectionAttribute>', 'name='=>'?string', 'flags='=>'int'],
'ReflectionClassConstant::getAttributes' => ['list<ReflectionAttribute>', 'name='=>'?string', 'flags='=>'int'],
'ReflectionFunctionAbstract::getAttributes' => ['list<ReflectionAttribute>', 'name='=>'?string', 'flags='=>'int'],
'ReflectionParameter::getAttributes' => ['list<ReflectionAttribute>', 'name='=>'?string', 'flags='=>'int'],
'ReflectionProperty::getAttributes' => ['list<ReflectionAttribute>', 'name='=>'?string', 'flags='=>'int'],
'ReflectionUnionType::getTypes' => ['list<ReflectionNamedType>'],
'fdiv' => ['float', 'num1'=>'float', 'num2'=>'float'],
'get_debug_type' => ['string', 'value'=>'mixed'],
'get_resource_id' => ['int', 'resource'=>'resource'],
'imagegetinterpolation' => ['int', 'image'=>'GdImage'],
'str_contains' => ['bool', 'haystack'=>'string', 'needle'=>'string'],
'str_ends_with' => ['bool', 'haystack'=>'string', 'needle'=>'string'],
'str_starts_with' => ['bool', 'haystack'=>'string', 'needle'=>'string'],
],
'changed' => [
'Collator::getStrength' => [
'old' => ['int|false'],
'new' => ['int'],
],
'DateTime::diff' => [
'old' => ['DateInterval|false', 'datetime2'=>'DateTimeInterface', 'absolute='=>'bool'],
'new' => ['DateInterval', 'datetime2'=>'DateTimeInterface', 'absolute='=>'bool'],
],
'DateTime::format' => [
'old' => ['string|false', 'format'=>'string'],
'new' => ['string', 'format'=>'string'],
],
'DateTime::getTimestamp' => [
'old' => ['int|false'],
'new' => ['int'],
],
'DateTime::setTime' => [
'old' => ['static|false', 'hour'=>'int', 'minute'=>'int', 'second='=>'int', 'microseconds='=>'int'],
'new' => ['static', 'hour'=>'int', 'minute'=>'int', 'second='=>'int', 'microseconds='=>'int'],
],
'DateTimeInterface::getTimestamp' => [
'old' => ['int|false'],
'new' => ['int'],
],
'DateTimeZone::getOffset' => [
'old' => ['int|false', 'datetime'=>'DateTimeInterface'],
'new' => ['int', 'datetime'=>'DateTimeInterface'],
],
'DateTimeZone::listIdentifiers' => [
'old' => ['list<string>|false', 'timezoneGroup='=>'int', 'countryCode='=>'string|null'],
'new' => ['list<string>', 'timezoneGroup='=>'int', 'countryCode='=>'string|null'],
],
'IntlDateFormatter::__construct' => [
'old' => ['void', 'locale'=>'?string', 'datetype'=>'null|int', 'timetype'=>'null|int', 'timezone='=>'IntlTimeZone|DateTimeZone|string|null', 'calendar='=>'IntlCalendar|int|null', 'pattern='=>'?string'],
'new' => ['void', 'locale'=>'?string', 'dateType'=>'int', 'timeType'=>'int', 'timezone='=>'IntlTimeZone|DateTimeZone|string|null', 'calendar='=>'IntlCalendar|int|null', 'pattern='=>'?string'],
],
'IntlDateFormatter::create' => [
'old' => ['?IntlDateFormatter', 'locale'=>'?string', 'datetype'=>'null|int', 'timetype'=>'null|int', 'timezone='=>'IntlTimeZone|DateTimeZone|string|null', 'calendar='=>'IntlCalendar|int|null', 'pattern='=>'?string'],
'new' => ['?IntlDateFormatter', 'locale'=>'?string', 'dateType'=>'int', 'timeType'=>'int', 'timezone='=>'IntlTimeZone|DateTimeZone|string|null', 'calendar='=>'IntlCalendar|int|null', 'pattern='=>'?string'],
],
'IntlDateFormatter::format' => [
'old' => ['string|false', 'value'=>'IntlCalendar|DateTimeInterface|array{0: int, 1: int, 2: int, 3: int, 4: int, 5: int, 6: int, 7: int, 8: int}|array{tm_sec: int, tm_min: int, tm_hour: int, tm_mday: int, tm_mon: int, tm_year: int, tm_wday: int, tm_yday: int, tm_isdst: int}|string|int|float'],
'new' => ['string|false', 'datetime'=>'IntlCalendar|DateTimeInterface|array{0: int, 1: int, 2: int, 3: int, 4: int, 5: int, 6: int, 7: int, 8: int}|array{tm_sec: int, tm_min: int, tm_hour: int, tm_mday: int, tm_mon: int, tm_year: int, tm_wday: int, tm_yday: int, tm_isdst: int}|string|int|float'],
],
'IntlDateFormatter::formatObject' => [
'old' => ['string|false', 'object'=>'IntlCalendar|DateTime', 'format='=>'array{0: int, 1: int}|int|string|null', 'locale='=>'?string'],
'new' => ['string|false', 'datetime'=>'IntlCalendar|DateTimeInterface', 'format='=>'array{0: int, 1: int}|int|string|null', 'locale='=>'?string'],
],
'IntlDateFormatter::getCalendar' => [
'old' => ['int'],
'new' => ['int|false'],
],
'IntlDateFormatter::getCalendarObject' => [
'old' => ['IntlCalendar'],
'new' => ['IntlCalendar|false|null'],
],
'IntlDateFormatter::getDateType' => [
'old' => ['int'],
'new' => ['int|false'],
],
'IntlDateFormatter::getLocale' => [
'old' => ['string', 'which='=>'int'],
'new' => ['string|false', 'type='=>'int'],
],
'IntlDateFormatter::getPattern' => [
'old' => ['string'],
'new' => ['string|false'],
],
'IntlDateFormatter::getTimeType' => [
'old' => ['int'],
'new' => ['int|false'],
],
'IntlDateFormatter::getTimeZoneId' => [
'old' => ['string'],
'new' => ['string|false'],
],
'IntlDateFormatter::localtime' => [
'old' => ['array', 'value'=>'string', '&rw_position='=>'int'],
'new' => ['array|false', 'string'=>'string', '&rw_offset='=>'int'],
],
'IntlDateFormatter::parse' => [
'old' => ['int|float', 'value'=>'string', '&rw_position='=>'int'],
'new' => ['int|float|false', 'string'=>'string', '&rw_offset='=>'int'],
],
'IntlDateFormatter::setCalendar' => [
'old' => ['bool', 'which'=>'IntlCalendar|int|null'],
'new' => ['bool', 'calendar'=>'IntlCalendar|int|null'],
],
'IntlDateFormatter::setLenient' => [
'old' => ['bool', 'lenient'=>'bool'],
'new' => ['void', 'lenient'=>'bool'],
],
'IntlDateFormatter::setTimeZone' => [
'old' => ['null|false', 'zone'=>'IntlTimeZone|DateTimeZone|string|null'],
'new' => ['null|false', 'timezone'=>'IntlTimeZone|DateTimeZone|string|null'],
],
'PDOStatement::bindColumn' => [
'old' => ['bool', 'column'=>'mixed', '&rw_param'=>'mixed', 'type='=>'int', 'maxlen='=>'int', 'driverdata='=>'mixed'],
'new' => ['bool', 'column'=>'mixed', '&rw_var'=>'mixed', 'type='=>'int', 'maxLength='=>'int', 'driverOptions='=>'mixed'],
],
'PDOStatement::bindParam' => [
'old' => ['bool', 'paramno'=>'mixed', '&rw_param'=>'mixed', 'type='=>'int', 'maxlen='=>'int', 'driverdata='=>'mixed'],
'new' => ['bool', 'param,'=>'string|int', '&rw_var'=>'mixed', 'type='=>'int', 'maxLength='=>'int', 'driverOptions='=>'mixed'],
],
'PDOStatement::bindValue' => [
'old' => ['bool', 'paramno'=>'mixed', 'param'=>'mixed', 'type='=>'int'],
'new' => ['bool', 'param'=>'string|int', 'value'=>'mixed', 'type='=>'int'],
],
'PDOStatement::debugDumpParams' => [
'old' => ['void'],
'new' => ['bool|null'],
],
'PDOStatement::errorCode' => [
'old' => ['string'],
'new' => ['string|null'],
],
'PDOStatement::execute' => [
'old' => ['bool', 'bound_input_params='=>'?array'],
'new' => ['bool', 'params='=>'?array'],
],
'PDOStatement::fetch' => [
'old' => ['mixed', 'how='=>'int', 'orientation='=>'int', 'offset='=>'int'],
'new' => ['mixed', 'mode='=>'int', 'cursorOrientation='=>'int', 'cursorOffset='=>'int'],
],
'PDOStatement::fetchAll' => [
'old' => ['array|false', 'how='=>'int', 'fetch_argument='=>'int|string|callable', 'ctor_args='=>'?array'],
'new' => ['array', 'mode='=>'int', '...args='=>'mixed'],
],
'PDOStatement::fetchColumn' => [
'old' => ['string|int|float|bool|null', 'column_number='=>'int'],
'new' => ['mixed', 'column='=>'int'],
],
'PDOStatement::fetchObject' => [
'old' => ['object|false', 'class_name='=>'string', 'ctor_args='=>'array'],
'new' => ['object|false', 'class='=>'?string', 'ctorArgs='=>'?array'],
],
'PDOStatement::setFetchMode' => [
'old' => ['bool', 'mode'=>'int'],
'new' => ['bool', 'mode'=>'int', '...args='=>'mixed'],
],
'Phar::getMetadata' => [
'old' => ['mixed'],
'new' => ['mixed', 'unserializeOptions='=>'array'],
],
'PharFileInfo::getMetadata' => [
'old' => ['mixed'],
'new' => ['mixed', 'unserializeOptions='=>'array'],
],
'ReflectionClass::getConstants' => [
'old' => ['array<string,mixed>'],
'new' => ['array<string,mixed>', 'filter='=>'?int'],
],
'ReflectionClass::getReflectionConstants' => [
'old' => ['list<ReflectionClassConstant>'],
'new' => ['list<ReflectionClassConstant>', 'filter='=>'?int'],
],
'ReflectionClass::newInstanceArgs' => [
'old' => ['object', 'args='=>'list<mixed>'],
'new' => ['object', 'args='=>'array<array-key, mixed>'],
],
'ReflectionProperty::getValue' => [
'old' => ['mixed', 'object='=>'object'],
'new' => ['mixed', 'object='=>'null|object'],
],
'XMLWriter::flush' => [
'old' => ['string|int|false', 'empty='=>'bool'],
'new' => ['string|int', 'empty='=>'bool'],
],
'SoapClient::__doRequest' => [
'old' => ['?string', 'request'=>'string', 'location'=>'string', 'action'=>'string', 'version'=>'int', 'one_way='=>'int'],
'new' => ['?string', 'request'=>'string', 'location'=>'string', 'action'=>'string', 'version'=>'int', 'one_way='=>'bool'],
],
'XMLWriter::startAttributeNs' => [
'old' => ['bool', 'prefix'=>'string', 'name'=>'string', 'namespace'=>'?string'],
'new' => ['bool', 'prefix'=>'?string', 'name'=>'string', 'namespace'=>'?string'],
],
'XMLWriter::writeAttributeNs' => [
'old' => ['bool', 'prefix'=>'string', 'name'=>'string', 'namespace'=>'?string', 'value'=>'string'],
'new' => ['bool', 'prefix'=>'?string', 'name'=>'string', 'namespace'=>'?string', 'value'=>'string'],
],
'XMLWriter::writeDtdEntity' => [
'old' => ['bool', 'name'=>'string', 'content'=>'string', 'isParam'=>'bool', 'publicId'=>'string', 'systemId'=>'string', 'notationData'=>'string'],
'new' => ['bool', 'name'=>'string', 'content'=>'string', 'isParam='=>'bool', 'publicId='=>'?string', 'systemId='=>'?string', 'notationData='=>'?string'],
],
'array_column' => [
'old' => ['array', 'array'=>'array', 'column_key'=>'mixed', 'index_key='=>'mixed'],
'new' => ['array', 'array'=>'array', 'column_key'=>'int|string|null', 'index_key='=>'int|string|null'],
],
'array_combine' => [
'old' => ['associative-array|false', 'keys'=>'string[]|int[]', 'values'=>'array'],
'new' => ['associative-array', 'keys'=>'string[]|int[]', 'values'=>'array'],
],
'array_diff' => [
'old' => ['associative-array', 'array'=>'array', '...arrays'=>'array'],
'new' => ['associative-array', 'array'=>'array', '...arrays='=>'array'],
],
'array_diff_assoc' => [
'old' => ['associative-array', 'array'=>'array', '...arrays'=>'array'],
'new' => ['associative-array', 'array'=>'array', '...arrays='=>'array'],
],
'array_diff_key' => [
'old' => ['associative-array', 'array'=>'array', '...arrays'=>'array'],
'new' => ['associative-array', 'array'=>'array', '...arrays='=>'array'],
],
'array_key_exists' => [
'old' => ['bool', 'key'=>'string|int', 'array'=>'array|object'],
'new' => ['bool', 'key'=>'string|int', 'array'=>'array'],
],
'array_intersect' => [
'old' => ['associative-array', 'array'=>'array', '...arrays'=>'array'],
'new' => ['associative-array', 'array'=>'array', '...arrays='=>'array'],
],
'array_intersect_assoc' => [
'old' => ['associative-array', 'array'=>'array', '...arrays'=>'array'],
'new' => ['associative-array', 'array'=>'array', '...arrays='=>'array'],
],
'array_intersect_key' => [
'old' => ['associative-array', 'array'=>'array', '...arrays'=>'array'],
'new' => ['associative-array', 'array'=>'array', '...arrays='=>'array'],
],
'bcadd' => [
'old' => ['numeric-string', 'num1'=>'numeric-string', 'num2'=>'numeric-string', 'scale='=>'int'],
'new' => ['numeric-string', 'num1'=>'numeric-string', 'num2'=>'numeric-string', 'scale='=>'int|null'],
],
'bccomp' => [
'old' => ['int', 'num1'=>'numeric-string', 'num2'=>'numeric-string', 'scale='=>'int'],
'new' => ['int', 'num1'=>'numeric-string', 'num2'=>'numeric-string', 'scale='=>'int|null'],
],
'bcdiv' => [
'old' => ['numeric-string|null', 'dividend'=>'numeric-string', 'divisor'=>'numeric-string', 'scale='=>'int'],
'new' => ['numeric-string|null', 'dividend'=>'numeric-string', 'divisor'=>'numeric-string', 'scale='=>'int|null'],
],
'bcmod' => [
'old' => ['numeric-string|null', 'dividend'=>'numeric-string', 'divisor'=>'numeric-string', 'scale='=>'int'],
'new' => ['numeric-string|null', 'dividend'=>'numeric-string', 'divisor'=>'numeric-string', 'scale='=>'int|null'],
],
'bcmul' => [
'old' => ['numeric-string', 'num1'=>'numeric-string', 'num2'=>'numeric-string', 'scale='=>'int'],
'new' => ['numeric-string', 'num1'=>'numeric-string', 'num2'=>'numeric-string', 'scale='=>'int|null'],
],
'bcpow' => [
'old' => ['numeric-string', 'num'=>'numeric-string', 'exponent'=>'numeric-string', 'scale='=>'int'],
'new' => ['numeric-string', 'num'=>'numeric-string', 'exponent'=>'numeric-string', 'scale='=>'int|null'],
],
'bcpowmod' => [
'old' => ['numeric-string|false', 'base'=>'numeric-string', 'exponent'=>'numeric-string', 'modulus'=>'numeric-string', 'scale='=>'int'],
'new' => ['numeric-string|false', 'base'=>'numeric-string', 'exponent'=>'numeric-string', 'modulus'=>'numeric-string', 'scale='=>'int|null'],
],
'bcscale' => [
'old' => ['int', 'scale='=>'int'],
'new' => ['int', 'scale='=>'int|null'],
],
'bcsqrt' => [
'old' => ['numeric-string', 'num'=>'numeric-string', 'scale='=>'int'],
'new' => ['numeric-string|null', 'num'=>'numeric-string', 'scale='=>'int|null'],
],
'bcsub' => [
'old' => ['numeric-string', 'num1'=>'numeric-string', 'num2'=>'numeric-string', 'scale='=>'int'],
'new' => ['numeric-string', 'num1'=>'numeric-string', 'num2'=>'numeric-string', 'scale='=>'int|null'],
],
'collator_get_strength' => [
'old' => ['int|false', 'object'=>'collator'],
'new' => ['int', 'object'=>'collator'],
],
'com_load_typelib' => [
'old' => ['bool', 'typelib_name'=>'string', 'case_insensitive='=>'bool'],
'new' => ['bool', 'typelib_name'=>'string', 'case_insensitive='=>'true'],
],
'count' => [
'old' => ['int<0, max>', 'value'=>'Countable|array|SimpleXMLElement', 'mode='=>'int'],
'new' => ['int<0, max>', 'value'=>'Countable|array', 'mode='=>'int'],
],
'count_chars' => [
'old' => ['array<int,int>|false', 'input'=>'string', 'mode='=>'0|1|2'],
'new' => ['array<int,int>', 'input'=>'string', 'mode='=>'0|1|2'],
],
'count_chars\'1' => [
'old' => ['string|false', 'input'=>'string', 'mode='=>'3|4'],
'new' => ['string', 'input'=>'string', 'mode='=>'3|4'],
],
'curl_close' => [
'old' => ['void', 'ch'=>'resource'],
'new' => ['void', 'handle'=>'CurlHandle'],
],
'curl_copy_handle' => [
'old' => ['resource', 'ch'=>'resource'],
'new' => ['CurlHandle', 'handle'=>'CurlHandle'],
],
'curl_errno' => [
'old' => ['int', 'ch'=>'resource'],
'new' => ['int', 'handle'=>'CurlHandle'],
],
'curl_error' => [
'old' => ['string', 'ch'=>'resource'],
'new' => ['string', 'handle'=>'CurlHandle'],
],
'curl_escape' => [
'old' => ['string|false', 'ch'=>'resource', 'string'=>'string'],
'new' => ['string|false', 'handle'=>'CurlHandle', 'string'=>'string'],
],
'curl_exec' => [
'old' => ['bool|string', 'ch'=>'resource'],
'new' => ['bool|string', 'handle'=>'CurlHandle'],
],
'curl_file_create' => [
'old' => ['CURLFile', 'filename'=>'string', 'mimetype='=>'string', 'postfilename='=>'string'],
'new' => ['CURLFile', 'filename'=>'string', 'mime_type='=>'string|null', 'posted_filename='=>'string|null'],
],
'curl_getinfo' => [
'old' => ['mixed', 'ch'=>'resource', 'option='=>'int'],
'new' => ['mixed', 'handle'=>'CurlHandle', 'option='=>'int'],
],
'curl_init' => [
'old' => ['resource|false', 'url='=>'string'],
'new' => ['CurlHandle|false', 'url='=>'string'],
],
'curl_multi_add_handle' => [
'old' => ['int', 'mh'=>'resource', 'ch'=>'resource'],
'new' => ['int', 'multi_handle'=>'CurlMultiHandle', 'handle'=>'CurlHandle'],
],
'curl_multi_close' => [
'old' => ['void', 'mh'=>'resource'],
'new' => ['void', 'multi_handle'=>'CurlMultiHandle'],
],
'curl_multi_errno' => [
'old' => ['int|false', 'mh'=>'resource'],
'new' => ['int', 'multi_handle'=>'CurlMultiHandle'],
],
'curl_multi_exec' => [
'old' => ['int', 'mh'=>'resource', '&w_still_running'=>'int'],
'new' => ['int', 'multi_handle'=>'CurlMultiHandle', '&w_still_running'=>'int'],
],
'curl_multi_getcontent' => [
'old' => ['string', 'ch'=>'resource'],
'new' => ['string', 'handle'=>'CurlHandle'],
],
'curl_multi_info_read' => [
'old' => ['array|false', 'mh'=>'resource', '&w_msgs_in_queue='=>'int'],
'new' => ['array|false', 'multi_handle'=>'CurlMultiHandle', '&w_queued_messages='=>'int'],
],
'curl_multi_init' => [
'old' => ['resource|false'],
'new' => ['CurlMultiHandle|false'],
],
'curl_multi_remove_handle' => [
'old' => ['int', 'mh'=>'resource', 'ch'=>'resource'],
'new' => ['int', 'multi_handle'=>'CurlMultiHandle', 'handle'=>'CurlHandle'],
],
'curl_multi_select' => [
'old' => ['int', 'mh'=>'resource', 'timeout='=>'float'],
'new' => ['int', 'multi_handle'=>'CurlMultiHandle', 'timeout='=>'float'],
],
'curl_multi_setopt' => [
'old' => ['bool', 'mh'=>'resource', 'option'=>'int', 'value'=>'mixed'],
'new' => ['bool', 'multi_handle'=>'CurlMultiHandle', 'option'=>'int', 'value'=>'mixed'],
],
'curl_pause' => [
'old' => ['int', 'ch'=>'resource', 'bitmask'=>'int'],
'new' => ['int', 'handle'=>'CurlHandle', 'flags'=>'int'],
],
'curl_reset' => [
'old' => ['void', 'ch'=>'resource'],
'new' => ['void', 'handle'=>'CurlHandle'],
],
'curl_setopt' => [
'old' => ['bool', 'ch'=>'resource', 'option'=>'int', 'value'=>'callable|mixed'],
'new' => ['bool', 'handle'=>'CurlHandle', 'option'=>'int', 'value'=>'callable|mixed'],
],
'curl_setopt_array' => [
'old' => ['bool', 'ch'=>'resource', 'options'=>'array'],
'new' => ['bool', 'handle'=>'CurlHandle', 'options'=>'array'],
],
'curl_share_close' => [
'old' => ['void', 'sh'=>'resource'],
'new' => ['void', 'share_handle'=>'CurlShareHandle'],
],
'curl_share_errno' => [
'old' => ['int|false', 'sh'=>'resource'],
'new' => ['int', 'share_handle'=>'CurlShareHandle'],
],
'curl_share_init' => [
'old' => ['resource'],
'new' => ['CurlShareHandle'],
],
'curl_share_setopt' => [
'old' => ['bool', 'sh'=>'resource', 'option'=>'int', 'value'=>'mixed'],
'new' => ['bool', 'share_handle'=>'CurlShareHandle', 'option'=>'int', 'value'=>'mixed'],
],
'curl_unescape' => [
'old' => ['string|false', 'ch'=>'resource', 'string'=>'string'],
'new' => ['string|false', 'handle'=>'CurlHandle', 'string'=>'string'],
],
'date' => [
'old' => ['string', 'format'=>'string', 'timestamp='=>'int'],
'new' => ['string', 'format'=>'string', 'timestamp='=>'?int'],
],
'date_add' => [
'old' => ['DateTime|false', 'object'=>'DateTime', 'interval'=>'DateInterval'],
'new' => ['DateTime', 'object'=>'DateTime', 'interval'=>'DateInterval'],
],
'date_date_set' => [
'old' => ['DateTime|false', 'object'=>'DateTime', 'year'=>'int', 'month'=>'int', 'day'=>'int'],
'new' => ['DateTime', 'object'=>'DateTime', 'year'=>'int', 'month'=>'int', 'day'=>'int'],
],
'date_diff' => [
'old' => ['DateInterval|false', 'baseObject'=>'DateTimeInterface', 'targetObject'=>'DateTimeInterface', 'absolute='=>'bool'],
'new' => ['DateInterval', 'baseObject'=>'DateTimeInterface', 'targetObject'=>'DateTimeInterface', 'absolute='=>'bool'],
],
'date_format' => [
'old' => ['string|false', 'object'=>'DateTimeInterface', 'format'=>'string'],
'new' => ['string', 'object'=>'DateTimeInterface', 'format'=>'string'],
],
'date_offset_get' => [
'old' => ['int|false', 'object'=>'DateTimeInterface'],
'new' => ['int', 'object'=>'DateTimeInterface'],
],
'date_parse' => [
'old' => ['array|false', 'datetime'=>'string'],
'new' => ['array', 'datetime'=>'string'],
],
'date_sub' => [
'old' => ['DateTime|false', 'object'=>'DateTime', 'interval'=>'DateInterval'],
'new' => ['DateTime', 'object'=>'DateTime', 'interval'=>'DateInterval'],
],
'date_sun_info' => [
'old' => ['array|false', 'timestamp'=>'int', 'latitude'=>'float', 'longitude'=>'float'],
'new' => ['array', 'timestamp'=>'int', 'latitude'=>'float', 'longitude'=>'float'],
],
'date_sunrise' => [
'old' => ['mixed', 'timestamp'=>'int', 'returnFormat='=>'int', 'latitude='=>'float', 'longitude='=>'float', 'zenith='=>'float', 'utcOffset='=>'float'],
'new' => ['string|int|float|false', 'timestamp'=>'int', 'returnFormat='=>'int', 'latitude='=>'float', 'longitude='=>'float', 'zenith='=>'float', 'utcOffset='=>'float'],
],
'date_sunset' => [
'old' => ['mixed', 'timestamp'=>'int', 'returnFormat='=>'int', 'latitude='=>'float', 'longitude='=>'float', 'zenith='=>'float', 'utcOffset='=>'float'],
'new' => ['string|int|float|false', 'timestamp'=>'int', 'returnFormat='=>'int', 'latitude='=>'float', 'longitude='=>'float', 'zenith='=>'float', 'utcOffset='=>'float'],
],
'date_time_set' => [
'old' => ['DateTime|false', 'object'=>'', 'hour'=>'', 'minute'=>'', 'second='=>'', 'microsecond='=>''],
'new' => ['DateTime', 'object'=>'', 'hour'=>'', 'minute'=>'', 'second='=>'', 'microsecond='=>''],
],
'date_timestamp_set' => [
'old' => ['DateTime|false', 'object'=>'DateTime', 'timestamp'=>'int'],
'new' => ['DateTime', 'object'=>'DateTime', 'timestamp'=>'int'],
],
'date_timezone_set' => [
'old' => ['DateTime|false', 'object'=>'DateTime', 'timezone'=>'DateTimeZone'],
'new' => ['DateTime', 'object'=>'DateTime', 'timezone'=>'DateTimeZone'],
],
'datefmt_create' => [
'old' => ['?IntlDateFormatter', 'locale'=>'?string', 'dateType'=>'int', 'timeType'=>'int', 'timezone='=>'DateTimeZone|IntlTimeZone|string|null', 'calendar='=>'IntlCalendar|int|null', 'pattern='=>'string'],
'new' => ['?IntlDateFormatter', 'locale'=>'?string', 'dateType='=>'int', 'timeType='=>'int', 'timezone='=>'DateTimeZone|IntlTimeZone|string|null', 'calendar='=>'IntlCalendar|int|null', 'pattern='=>'?string'],
],
'dom_import_simplexml' => [
'old' => ['DOMElement|null', 'node'=>'SimpleXMLElement'],
'new' => ['DOMElement', 'node'=>'SimpleXMLElement'],
],
'explode' => [
'old' => ['list<string>|false', 'separator'=>'string', 'string'=>'string', 'limit='=>'int'],
'new' => ['list<string>', 'separator'=>'string', 'string'=>'string', 'limit='=>'int'],
],
'get_class_methods' => [
'old' => ['list<string>|null', 'object_or_class'=>'mixed'],
'new' => ['list<string>', 'object_or_class'=>'object|class-string'],
],
'get_parent_class' => [
'old' => ['class-string|false', 'object_or_class='=>'mixed'],
'new' => ['class-string|false', 'object_or_class='=>'object|class-string'],
],
'gmdate' => [
'old' => ['string', 'format'=>'string', 'timestamp='=>'int'],
'new' => ['string', 'format'=>'string', 'timestamp='=>'int|null'],
],
'gmmktime' => [
'old' => ['int|false', 'hour='=>'int', 'minute='=>'int', 'second='=>'int', 'month='=>'int', 'day='=>'int', 'year='=>'int'],
'new' => ['int|false', 'hour'=>'int', 'minute='=>'int|null', 'second='=>'int|null', 'month='=>'int|null', 'day='=>'int|null', 'year='=>'int|null'],
],
'gmp_binomial' => [
'old' => ['GMP|false', 'n'=>'GMP|string|int', 'k'=>'int'],
'new' => ['GMP', 'n'=>'GMP|string|int', 'k'=>'int'],
],
'gmstrftime' => [
'old' => ['string|false', 'format'=>'string', 'timestamp='=>'int'],
'new' => ['string|false', 'format'=>'string', 'timestamp='=>'?int'],
],
'hash' => [
'old' => ['string|false', 'algo'=>'string', 'data'=>'string', 'binary='=>'bool'],
'new' => ['non-empty-string', 'algo'=>'string', 'data'=>'string', 'binary='=>'bool'],
],
'hash_hmac' => [
'old' => ['non-empty-string|false', 'algo'=>'string', 'data'=>'string', 'key'=>'string', 'binary='=>'bool'],
'new' => ['non-empty-string', 'algo'=>'string', 'data'=>'string', 'key'=>'string', 'binary='=>'bool'],
],
'hash_init' => [
'old' => ['HashContext|false', 'algo'=>'string', 'flags='=>'int', 'key='=>'string'],
'new' => ['HashContext', 'algo'=>'string', 'flags='=>'int', 'key='=>'string'],
],
'hash_hkdf' => [
'old' => ['non-empty-string|false', 'algo'=>'string', 'key'=>'string', 'length='=>'int', 'info='=>'string', 'salt='=>'string'],
'new' => ['non-empty-string', 'algo'=>'string', 'key'=>'string', 'length='=>'int', 'info='=>'string', 'salt='=>'string'],
],
'hash_update_file' => [
'old' => ['bool', 'context'=>'HashContext', 'filename'=>'string', 'stream_context='=>'resource'],
'new' => ['bool', 'context'=>'HashContext', 'filename'=>'string', 'stream_context='=>'?resource'],
],
'imageaffine' => [
'old' => ['resource|false', 'src'=>'resource', 'affine'=>'array', 'clip='=>'array'],
'new' => ['false|GdImage', 'image'=>'GdImage', 'affine'=>'array', 'clip='=>'?array'],
],
'imagealphablending' => [
'old' => ['bool', 'image'=>'resource', 'enable'=>'bool'],
'new' => ['bool', 'image'=>'GdImage', 'enable'=>'bool'],
],
'imageantialias' => [
'old' => ['bool', 'image'=>'resource', 'enable'=>'bool'],
'new' => ['bool', 'image'=>'GdImage', 'enable'=>'bool'],
],
'imagearc' => [
'old' => ['bool', 'image'=>'resource', 'center_x'=>'int', 'center_y'=>'int', 'width'=>'int', 'height'=>'int', 'start_angle'=>'int', 'end_angle'=>'int', 'color'=>'int'],
'new' => ['bool', 'image'=>'GdImage', 'center_x'=>'int', 'center_y'=>'int', 'width'=>'int', 'height'=>'int', 'start_angle'=>'int', 'end_angle'=>'int', 'color'=>'int'],
],
'imagebmp' => [
'old' => ['bool', 'image'=>'resource', 'file='=>'resource|string|null', 'compressed='=>'int'],
'new' => ['bool', 'image'=>'GdImage', 'file='=>'resource|string|null', 'compressed='=>'bool'],
],
'imagechar' => [
'old' => ['bool', 'image'=>'resource', 'font'=>'int', 'x'=>'int', 'y'=>'int', 'char'=>'string', 'color'=>'int'],
'new' => ['bool', 'image'=>'GdImage', 'font'=>'int', 'x'=>'int', 'y'=>'int', 'char'=>'string', 'color'=>'int'],
],
'imagecharup' => [
'old' => ['bool', 'image'=>'resource', 'font'=>'int', 'x'=>'int', 'y'=>'int', 'char'=>'string', 'color'=>'int'],
'new' => ['bool', 'image'=>'GdImage', 'font'=>'int', 'x'=>'int', 'y'=>'int', 'char'=>'string', 'color'=>'int'],
],
'imagecolorallocate' => [
'old' => ['int|false', 'image'=>'resource', 'red'=>'int', 'green'=>'int', 'blue'=>'int'],
'new' => ['int|false', 'image'=>'GdImage', 'red'=>'int', 'green'=>'int', 'blue'=>'int'],
],
'imagecolorallocatealpha' => [
'old' => ['int|false', 'image'=>'resource', 'red'=>'int', 'green'=>'int', 'blue'=>'int', 'alpha'=>'int'],
'new' => ['int|false', 'image'=>'GdImage', 'red'=>'int', 'green'=>'int', 'blue'=>'int', 'alpha'=>'int'],
],
'imagecolorat' => [
'old' => ['int|false', 'image'=>'resource', 'x'=>'int', 'y'=>'int'],
'new' => ['int|false', 'image'=>'GdImage', 'x'=>'int', 'y'=>'int'],
],
'imagecolorclosest' => [
'old' => ['int|false', 'image'=>'resource', 'red'=>'int', 'green'=>'int', 'blue'=>'int'],
'new' => ['int|false', 'image'=>'GdImage', 'red'=>'int', 'green'=>'int', 'blue'=>'int'],
],
'imagecolorclosestalpha' => [
'old' => ['int|false', 'image'=>'resource', 'red'=>'int', 'green'=>'int', 'blue'=>'int', 'alpha'=>'int'],
'new' => ['int|false', 'image'=>'GdImage', 'red'=>'int', 'green'=>'int', 'blue'=>'int', 'alpha'=>'int'],
],
'imagecolorclosesthwb' => [
'old' => ['int|false', 'image'=>'resource', 'red'=>'int', 'green'=>'int', 'blue'=>'int'],
'new' => ['int|false', 'image'=>'GdImage', 'red'=>'int', 'green'=>'int', 'blue'=>'int'],
],
'imagecolordeallocate' => [
'old' => ['bool', 'image'=>'resource', 'color'=>'int'],
'new' => ['bool', 'image'=>'GdImage', 'color'=>'int'],
],
'imagecolorexact' => [
'old' => ['int|false', 'image'=>'resource', 'red'=>'int', 'green'=>'int', 'blue'=>'int'],
'new' => ['int|false', 'image'=>'GdImage', 'red'=>'int', 'green'=>'int', 'blue'=>'int'],
],
'imagecolorexactalpha' => [
'old' => ['int|false', 'image'=>'resource', 'red'=>'int', 'green'=>'int', 'blue'=>'int', 'alpha'=>'int'],
'new' => ['int|false', 'image'=>'GdImage', 'red'=>'int', 'green'=>'int', 'blue'=>'int', 'alpha'=>'int'],
],
'imagecolormatch' => [
'old' => ['bool', 'image1'=>'resource', 'image2'=>'resource'],
'new' => ['bool', 'image1'=>'GdImage', 'image2'=>'GdImage'],
],
'imagecolorresolve' => [
'old' => ['int|false', 'image'=>'resource', 'red'=>'int', 'green'=>'int', 'blue'=>'int'],
'new' => ['int|false', 'image'=>'GdImage', 'red'=>'int', 'green'=>'int', 'blue'=>'int'],
],
'imagecolorresolvealpha' => [
'old' => ['int|false', 'image'=>'resource', 'red'=>'int', 'green'=>'int', 'blue'=>'int', 'alpha'=>'int'],
'new' => ['int|false', 'image'=>'GdImage', 'red'=>'int', 'green'=>'int', 'blue'=>'int', 'alpha'=>'int'],
],
'imagecolorset' => [
'old' => ['false|null', 'image'=>'resource', 'color'=>'int', 'red'=>'int', 'green'=>'int', 'blue'=>'int', 'alpha='=>'int'],
'new' => ['false|null', 'image'=>'GdImage', 'color'=>'int', 'red'=>'int', 'green'=>'int', 'blue'=>'int', 'alpha='=>'int'],
],
'imagecolorsforindex' => [
'old' => ['array|false', 'image'=>'resource', 'color'=>'int'],
'new' => ['array|false', 'image'=>'GdImage', 'color'=>'int'],
],
'imagecolorstotal' => [
'old' => ['int|false', 'image'=>'resource'],
'new' => ['int|false', 'image'=>'GdImage'],
],
'imagecolortransparent' => [
'old' => ['int|false', 'image'=>'resource', 'color='=>'int'],
'new' => ['int|false', 'image'=>'GdImage', 'color='=>'int'],
],
'imageconvolution' => [
'old' => ['bool', 'image'=>'resource', 'matrix'=>'array', 'divisor'=>'float', 'offset'=>'float'],
'new' => ['bool', 'image'=>'GdImage', 'matrix'=>'array', 'divisor'=>'float', 'offset'=>'float'],
],
'imagecopy' => [
'old' => ['bool', 'dst_image'=>'resource', 'src_image'=>'resource', 'dst_x'=>'int', 'dst_y'=>'int', 'src_x'=>'int', 'src_y'=>'int', 'src_width'=>'int', 'src_height'=>'int'],
'new' => ['bool', 'dst_image'=>'GdImage', 'src_image'=>'GdImage', 'dst_x'=>'int', 'dst_y'=>'int', 'src_x'=>'int', 'src_y'=>'int', 'src_width'=>'int', 'src_height'=>'int'],
],
'imagecopymerge' => [
'old' => ['bool', 'dst_image'=>'resource', 'src_image'=>'resource', 'dst_x'=>'int', 'dst_y'=>'int', 'src_x'=>'int', 'src_y'=>'int', 'src_width'=>'int', 'src_height'=>'int', 'pct'=>'int'],
'new' => ['bool', 'dst_image'=>'GdImage', 'src_image'=>'GdImage', 'dst_x'=>'int', 'dst_y'=>'int', 'src_x'=>'int', 'src_y'=>'int', 'src_width'=>'int', 'src_height'=>'int', 'pct'=>'int'],
],
'imagecopymergegray' => [
'old' => ['bool', 'dst_image'=>'resource', 'src_image'=>'resource', 'dst_x'=>'int', 'dst_y'=>'int', 'src_x'=>'int', 'src_y'=>'int', 'src_width'=>'int', 'src_height'=>'int', 'pct'=>'int'],
'new' => ['bool', 'dst_image'=>'GdImage', 'src_image'=>'GdImage', 'dst_x'=>'int', 'dst_y'=>'int', 'src_x'=>'int', 'src_y'=>'int', 'src_width'=>'int', 'src_height'=>'int', 'pct'=>'int'],
],
'imagecopyresampled' => [
'old' => ['bool', 'dst_image'=>'resource', 'src_image'=>'resource', 'dst_x'=>'int', 'dst_y'=>'int', 'src_x'=>'int', 'src_y'=>'int', 'dst_width'=>'int', 'dst_height'=>'int', 'src_width'=>'int', 'src_height'=>'int'],
'new' => ['bool', 'dst_image'=>'GdImage', 'src_image'=>'GdImage', 'dst_x'=>'int', 'dst_y'=>'int', 'src_x'=>'int', 'src_y'=>'int', 'dst_width'=>'int', 'dst_height'=>'int', 'src_width'=>'int', 'src_height'=>'int'],
],
'imagecopyresized' => [
'old' => ['bool', 'dst_image'=>'resource', 'src_image'=>'resource', 'dst_x'=>'int', 'dst_y'=>'int', 'src_x'=>'int', 'src_y'=>'int', 'dst_width'=>'int', 'dst_height'=>'int', 'src_width'=>'int', 'src_height'=>'int'],
'new' => ['bool', 'dst_image'=>'GdImage', 'src_image'=>'GdImage', 'dst_x'=>'int', 'dst_y'=>'int', 'src_x'=>'int', 'src_y'=>'int', 'dst_width'=>'int', 'dst_height'=>'int', 'src_width'=>'int', 'src_height'=>'int'],
],
'imagecreate' => [
'old' => ['resource|false', 'x_size'=>'int', 'y_size'=>'int'],
'new' => ['false|GdImage', 'width'=>'int', 'height'=>'int'],
],
'imagecreatefrombmp' => [
'old' => ['resource|false', 'filename'=>'string'],
'new' => ['false|GdImage', 'filename'=>'string'],
],
'imagecreatefromgd' => [
'old' => ['resource|false', 'filename'=>'string'],
'new' => ['false|GdImage', 'filename'=>'string'],
],
'imagecreatefromgd2' => [
'old' => ['resource|false', 'filename'=>'string'],
'new' => ['false|GdImage', 'filename'=>'string'],
],
'imagecreatefromgd2part' => [
'old' => ['resource|false', 'filename'=>'string', 'srcx'=>'int', 'srcy'=>'int', 'width'=>'int', 'height'=>'int'],
'new' => ['false|GdImage', 'filename'=>'string', 'x'=>'int', 'y'=>'int', 'width'=>'int', 'height'=>'int'],
],
'imagecreatefromgif' => [
'old' => ['resource|false', 'filename'=>'string'],
'new' => ['false|GdImage', 'filename'=>'string'],
],
'imagecreatefromjpeg' => [
'old' => ['resource|false', 'filename'=>'string'],
'new' => ['false|GdImage', 'filename'=>'string'],
],
'imagecreatefrompng' => [
'old' => ['resource|false', 'filename'=>'string'],
'new' => ['false|GdImage', 'filename'=>'string'],
],
'imagecreatefromstring' => [
'old' => ['resource|false', 'image'=>'string'],
'new' => ['false|GdImage', 'data'=>'string'],
],
'imagecreatefromwbmp' => [
'old' => ['resource|false', 'filename'=>'string'],
'new' => ['false|GdImage', 'filename'=>'string'],
],
'imagecreatefromwebp' => [
'old' => ['resource|false', 'filename'=>'string'],
'new' => ['false|GdImage', 'filename'=>'string'],
],
'imagecreatefromxbm' => [
'old' => ['resource|false', 'filename'=>'string'],
'new' => ['false|GdImage', 'filename'=>'string'],
],
'imagecreatefromxpm' => [
'old' => ['resource|false', 'filename'=>'string'],
'new' => ['false|GdImage', 'filename'=>'string'],
],
'imagecreatetruecolor' => [
'old' => ['resource|false', 'x_size'=>'int', 'y_size'=>'int'],
'new' => ['false|GdImage', 'width'=>'int', 'height'=>'int'],
],
'imagecrop' => [
'old' => ['resource|false', 'im'=>'resource', 'rect'=>'array'],
'new' => ['false|GdImage', 'image'=>'GdImage', 'rectangle'=>'array'],
],
'imagecropauto' => [
'old' => ['resource|false', 'im'=>'resource', 'mode='=>'int', 'threshold='=>'float', 'color='=>'int'],
'new' => ['false|GdImage', 'image'=>'GdImage', 'mode='=>'int', 'threshold='=>'float', 'color='=>'int'],
],
'imagedashedline' => [
'old' => ['bool', 'image'=>'resource', 'x1'=>'int', 'y1'=>'int', 'x2'=>'int', 'y2'=>'int', 'color'=>'int'],
'new' => ['bool', 'image'=>'GdImage', 'x1'=>'int', 'y1'=>'int', 'x2'=>'int', 'y2'=>'int', 'color'=>'int'],
],
'imagedestroy' => [
'old' => ['bool', 'image'=>'resource'],
'new' => ['bool', 'image'=>'GdImage'],
],
'imageellipse' => [
'old' => ['bool', 'image'=>'resource', 'center_x'=>'int', 'center_y'=>'int', 'width'=>'int', 'height'=>'int', 'color'=>'int'],
'new' => ['bool', 'image'=>'GdImage', 'center_x'=>'int', 'center_y'=>'int', 'width'=>'int', 'height'=>'int', 'color'=>'int'],
],
'imagefill' => [
'old' => ['bool', 'image'=>'resource', 'x'=>'int', 'y'=>'int', 'color'=>'int'],
'new' => ['bool', 'image'=>'GdImage', 'x'=>'int', 'y'=>'int', 'color'=>'int'],
],
'imagefilledarc' => [
'old' => ['bool', 'image'=>'resource', 'center_x'=>'int', 'center_y'=>'int', 'width'=>'int', 'height'=>'int', 'start_angle'=>'int', 'end_angle'=>'int', 'color'=>'int', 'style'=>'int'],
'new' => ['bool', 'image'=>'GdImage', 'center_x'=>'int', 'center_y'=>'int', 'width'=>'int', 'height'=>'int', 'start_angle'=>'int', 'end_angle'=>'int', 'color'=>'int', 'style'=>'int'],
],
'imagefilledellipse' => [
'old' => ['bool', 'image'=>'resource', 'center_x'=>'int', 'center_y'=>'int', 'width'=>'int', 'height'=>'int', 'color'=>'int'],
'new' => ['bool', 'image'=>'GdImage', 'center_x'=>'int', 'center_y'=>'int', 'width'=>'int', 'height'=>'int', 'color'=>'int'],
],
'imagefilledpolygon' => [
'old' => ['bool', 'image'=>'resource', 'points'=>'array', 'num_points_or_color'=>'int', 'color'=>'int'],
'new' => ['bool', 'image'=>'GdImage', 'points'=>'array', 'num_points_or_color'=>'int', 'color'=>'int'],
],
'imagefilledrectangle' => [
'old' => ['bool', 'image'=>'resource', 'x1'=>'int', 'y1'=>'int', 'x2'=>'int', 'y2'=>'int', 'color'=>'int'],
'new' => ['bool', 'image'=>'GdImage', 'x1'=>'int', 'y1'=>'int', 'x2'=>'int', 'y2'=>'int', 'color'=>'int'],
],
'imagefilltoborder' => [
'old' => ['bool', 'image'=>'resource', 'x'=>'int', 'y'=>'int', 'border_color'=>'int', 'color'=>'int'],
'new' => ['bool', 'image'=>'GdImage', 'x'=>'int', 'y'=>'int', 'border_color'=>'int', 'color'=>'int'],
],
'imagefilter' => [
'old' => ['bool', 'image'=>'resource', 'filter'=>'int', 'args='=>'int', 'arg2='=>'int', 'arg3='=>'int', 'arg4='=>'int'],
'new' => ['bool', 'image'=>'GdImage', 'filter'=>'int', 'args='=>'int', 'arg2='=>'int', 'arg3='=>'int', 'arg4='=>'int'],
],
'imageflip' => [
'old' => ['bool', 'image'=>'resource', 'mode'=>'int'],
'new' => ['bool', 'image'=>'GdImage', 'mode'=>'int'],
],
'imagefttext' => [
'old' => ['array|false', 'image'=>'resource', 'size'=>'float', 'angle'=>'float', 'x'=>'int', 'y'=>'int', 'color'=>'int', 'font_filename'=>'string', 'text'=>'string', 'options='=>'array'],
'new' => ['array|false', 'image'=>'GdImage', 'size'=>'float', 'angle'=>'float', 'x'=>'int', 'y'=>'int', 'color'=>'int', 'font_filename'=>'string', 'text'=>'string', 'options='=>'array'],
],
'imagegammacorrect' => [
'old' => ['bool', 'image'=>'resource', 'input_gamma'=>'float', 'output_gamma'=>'float'],
'new' => ['bool', 'image'=>'GdImage', 'input_gamma'=>'float', 'output_gamma'=>'float'],
],
'imagegd' => [
'old' => ['bool', 'image'=>'resource', 'file='=>'string|resource|null'],
'new' => ['bool', 'image'=>'GdImage', 'file='=>'string|resource|null'],
],
'imagegd2' => [
'old' => ['bool', 'image'=>'resource', 'file='=>'string|resource|null', 'chunk_size='=>'int', 'mode='=>'int'],
'new' => ['bool', 'image'=>'GdImage', 'file='=>'string|resource|null', 'chunk_size='=>'int', 'mode='=>'int'],
],
'imagegetclip' => [
'old' => ['array<int,int>|false', 'im'=>'resource'],
'new' => ['array<int,int>', 'image'=>'GdImage'],
],
'imagegif' => [
'old' => ['bool', 'image'=>'resource', 'file='=>'string|resource|null'],
'new' => ['bool', 'image'=>'GdImage', 'file='=>'string|resource|null'],
],
'imagegrabscreen' => [
'old' => ['false|resource'],
'new' => ['false|GdImage'],
],
'imagegrabwindow' => [
'old' => ['false|resource', 'window_handle'=>'int', 'client_area='=>'int'],
'new' => ['false|GdImage', 'handle'=>'int', 'client_area='=>'int'],
],
'imageinterlace' => [
'old' => ['int|false', 'image'=>'resource', 'enable='=>'int'],
'new' => ['int|bool', 'image'=>'GdImage', 'enable='=>'bool|null'],
],
'imageistruecolor' => [
'old' => ['bool', 'image'=>'resource'],
'new' => ['bool', 'image'=>'GdImage'],
],
'imagejpeg' => [
'old' => ['bool', 'image'=>'resource', 'file='=>'string|resource|null', 'quality='=>'int'],
'new' => ['bool', 'image'=>'GdImage', 'file='=>'string|resource|null', 'quality='=>'int'],
],
'imagelayereffect' => [
'old' => ['bool', 'image'=>'resource', 'effect'=>'int'],
'new' => ['bool', 'image'=>'GdImage', 'effect'=>'int'],
],
'imageline' => [
'old' => ['bool', 'image'=>'resource', 'x1'=>'int', 'y1'=>'int', 'x2'=>'int', 'y2'=>'int', 'color'=>'int'],
'new' => ['bool', 'image'=>'GdImage', 'x1'=>'int', 'y1'=>'int', 'x2'=>'int', 'y2'=>'int', 'color'=>'int'],
],
'imageopenpolygon' => [
'old' => ['bool', 'image'=>'resource', 'points'=>'array', 'num_points'=>'int', 'color'=>'int'],
'new' => ['bool', 'image'=>'GdImage', 'points'=>'array', 'num_points'=>'int', 'color'=>'int'],
],
'imagepalettecopy' => [
'old' => ['void', 'dst'=>'resource', 'src'=>'resource'],
'new' => ['void', 'dst'=>'GdImage', 'src'=>'GdImage'],
],
'imagepalettetotruecolor' => [
'old' => ['bool', 'image'=>'resource'],
'new' => ['bool', 'image'=>'GdImage'],
],
'imagepng' => [
'old' => ['bool', 'image'=>'resource', 'file='=>'string|resource|null', 'quality='=>'int', 'filters='=>'int'],
'new' => ['bool', 'image'=>'GdImage', 'file='=>'string|resource|null', 'quality='=>'int', 'filters='=>'int'],
],
'imagepolygon' => [
'old' => ['bool', 'image'=>'resource', 'points'=>'array', 'num_points_or_color'=>'int', 'color'=>'int'],
'new' => ['bool', 'image'=>'GdImage', 'points'=>'array', 'num_points_or_color'=>'int', 'color'=>'int'],
],
'imagerectangle' => [
'old' => ['bool', 'image'=>'resource', 'x1'=>'int', 'y1'=>'int', 'x2'=>'int', 'y2'=>'int', 'color'=>'int'],
'new' => ['bool', 'image'=>'GdImage', 'x1'=>'int', 'y1'=>'int', 'x2'=>'int', 'y2'=>'int', 'color'=>'int'],
],
'imageresolution' => [
'old' => ['array|bool', 'image'=>'resource', 'resolution_x='=>'int', 'resolution_y='=>'int'],
'new' => ['array|bool', 'image'=>'GdImage', 'resolution_x='=>'int', 'resolution_y='=>'int'],
],
'imagerotate' => [
'old' => ['resource|false', 'src_im'=>'resource', 'angle'=>'float', 'bgdcolor'=>'int', 'ignoretransparent='=>'int'],
'new' => ['false|GdImage', 'image'=>'GdImage', 'angle'=>'float', 'background_color'=>'int', 'ignore_transparent='=>'int'],
],
'imagesavealpha' => [
'old' => ['bool', 'image'=>'resource', 'enable'=>'bool'],
'new' => ['bool', 'image'=>'GdImage', 'enable'=>'bool'],
],
'imagescale' => [
'old' => ['resource|false', 'im'=>'resource', 'new_width'=>'int', 'new_height='=>'int', 'method='=>'int'],
'new' => ['false|GdImage', 'image'=>'GdImage', 'width'=>'int', 'height='=>'int', 'mode='=>'int'],
],
'imagesetbrush' => [
'old' => ['bool', 'image'=>'resource', 'brush'=>'resource'],
'new' => ['bool', 'image'=>'GdImage', 'brush'=>'GdImage'],
],
'imagesetclip' => [
'old' => ['bool', 'image'=>'resource', 'x1'=>'int', 'x2'=>'int', 'y1'=>'int', 'y2'=>'int'],
'new' => ['bool', 'image'=>'GdImage', 'x1'=>'int', 'x2'=>'int', 'y1'=>'int', 'y2'=>'int'],
],
'imagesetinterpolation' => [
'old' => ['bool', 'image'=>'resource', 'method'=>'int'],
'new' => ['bool', 'image'=>'GdImage', 'method'=>'int'],
],
'imagesetpixel' => [
'old' => ['bool', 'image'=>'resource', 'x'=>'int', 'y'=>'int', 'color'=>'int'],
'new' => ['bool', 'image'=>'GdImage', 'x'=>'int', 'y'=>'int', 'color'=>'int'],
],
'imagesetstyle' => [
'old' => ['bool', 'image'=>'resource', 'style'=>'non-empty-array'],
'new' => ['bool', 'image'=>'GdImage', 'style'=>'non-empty-array'],
],
'imagesetthickness' => [
'old' => ['bool', 'image'=>'resource', 'thickness'=>'int'],
'new' => ['bool', 'image'=>'GdImage', 'thickness'=>'int'],
],
'imagesettile' => [
'old' => ['bool', 'image'=>'resource', 'tile'=>'resource'],
'new' => ['bool', 'image'=>'GdImage', 'tile'=>'GdImage'],
],
'imagestring' => [
'old' => ['bool', 'image'=>'resource', 'font'=>'int', 'x'=>'int', 'y'=>'int', 'string'=>'string', 'color'=>'int'],
'new' => ['bool', 'image'=>'GdImage', 'font'=>'int', 'x'=>'int', 'y'=>'int', 'string'=>'string', 'color'=>'int'],
],
'imagestringup' => [
'old' => ['bool', 'image'=>'resource', 'font'=>'int', 'x'=>'int', 'y'=>'int', 'string'=>'string', 'color'=>'int'],
'new' => ['bool', 'image'=>'GdImage', 'font'=>'int', 'x'=>'int', 'y'=>'int', 'string'=>'string', 'color'=>'int'],
],
'imagesx' => [
'old' => ['int|false', 'image'=>'resource'],
'new' => ['int|false', 'image'=>'GdImage'],
],
'imagesy' => [
'old' => ['int|false', 'image'=>'resource'],
'new' => ['int|false', 'image'=>'GdImage'],
],
'imagetruecolortopalette' => [
'old' => ['bool', 'image'=>'resource', 'dither'=>'bool', 'num_colors'=>'int'],
'new' => ['bool', 'image'=>'GdImage', 'dither'=>'bool', 'num_colors'=>'int'],
],
'imagettftext' => [
'old' => ['false|array', 'image'=>'resource', 'size'=>'float', 'angle'=>'float', 'x'=>'int', 'y'=>'int', 'color'=>'int', 'font_filename'=>'string', 'text'=>'string'],
'new' => ['false|array', 'image'=>'GdImage', 'size'=>'float', 'angle'=>'float', 'x'=>'int', 'y'=>'int', 'color'=>'int', 'font_filename'=>'string', 'text'=>'string'],
],
'imagewbmp' => [
'old' => ['bool', 'image'=>'resource', 'file='=>'string|resource|null', 'foreground_color='=>'int'],
'new' => ['bool', 'image'=>'GdImage', 'file='=>'string|resource|null', 'foreground_color='=>'int'],
],
'imagewebp' => [
'old' => ['bool', 'image'=>'resource', 'file='=>'string|resource|null', 'quality='=>'int'],
'new' => ['bool', 'image'=>'GdImage', 'file='=>'string|resource|null', 'quality='=>'int'],
],
'imagexbm' => [
'old' => ['bool', 'image'=>'resource', 'filename='=>'?string', 'foreground_color='=>'int'],
'new' => ['bool', 'image'=>'GdImage', 'filename='=>'?string', 'foreground_color='=>'int'],
],
'ldap_exop_passwd' => [
'old' => ['bool|string', 'ldap'=>'resource', 'user='=>'string', 'old_password='=>'string', 'new_password='=>'string', '&w_controls='=>'array'],
'new' => ['bool|string', 'ldap'=>'resource', 'user='=>'string', 'old_password='=>'string', 'new_password='=>'string', '&w_controls='=>'array|null'],
],
'ldap_set_rebind_proc' => [
'old' => ['bool', 'ldap'=>'resource', 'callback'=>'callable'],
'new' => ['bool', 'ldap'=>'resource', 'callback'=>'?callable'],
],
'mb_check_encoding' => [
'old' => ['bool', 'value='=>'array|string', 'encoding='=>'string'],
'new' => ['bool', 'value='=>'array|string|null', 'encoding='=>'string|null'],
],
'mb_chr' => [
'old' => ['string|false', 'codepoint'=>'int', 'encoding='=>'string'],
'new' => ['string|false', 'codepoint'=>'int', 'encoding='=>'string|null'],
],
'mb_convert_case' => [
'old' => ['string', 'string'=>'string', 'mode'=>'int', 'encoding='=>'string'],
'new' => ['string', 'string'=>'string', 'mode'=>'int', 'encoding='=>'string|null'],
],
'mb_convert_encoding' => [
'old' => ['string|false', 'string'=>'string', 'to_encoding'=>'string', 'from_encoding='=>'mixed'],
'new' => ['string|false', 'string'=>'string', 'to_encoding'=>'string', 'from_encoding='=>'array|string|null'],
],
'mb_convert_encoding\'1' => [
'old' => ['array', 'string'=>'array', 'to_encoding'=>'string', 'from_encoding='=>'mixed'],
'new' => ['array', 'string'=>'array', 'to_encoding'=>'string', 'from_encoding='=>'array|string|null'],
],
'mb_convert_kana' => [
'old' => ['string', 'string'=>'string', 'mode='=>'string', 'encoding='=>'string'],
'new' => ['string', 'string'=>'string', 'mode='=>'string', 'encoding='=>'string|null'],
],
'mb_decode_numericentity' => [
'old' => ['string', 'string'=>'string', 'map'=>'array', 'encoding='=>'string'],
'new' => ['string', 'string'=>'string', 'map'=>'array', 'encoding='=>'string|null'],
],
'mb_detect_encoding' => [
'old' => ['string|false', 'string'=>'string', 'encodings='=>'mixed', 'strict='=>'bool'],
'new' => ['string|false', 'string'=>'string', 'encodings='=>'array|string|null', 'strict='=>'bool'],
],
'mb_detect_order' => [
'old' => ['bool|list<string>', 'encoding='=>'mixed'],
'new' => ['bool|list<string>', 'encoding='=>'array|string|null'],
],
'mb_encode_mimeheader' => [
'old' => ['string', 'string'=>'string', 'charset='=>'string', 'transfer_encoding='=>'string', 'newline='=>'string', 'indent='=>'int'],
'new' => ['string', 'string'=>'string', 'charset='=>'string|null', 'transfer_encoding='=>'string|null', 'newline='=>'string', 'indent='=>'int'],
],
'mb_encode_numericentity' => [
'old' => ['string', 'string'=>'string', 'map'=>'array', 'encoding='=>'string', 'hex='=>'bool'],
'new' => ['string', 'string'=>'string', 'map'=>'array', 'encoding='=>'string|null', 'hex='=>'bool'],
],
'mb_ereg' => [
'old' => ['int|false', 'pattern'=>'string', 'string'=>'string', '&w_matches='=>'array|null'],
'new' => ['bool', 'pattern'=>'string', 'string'=>'string', '&w_matches='=>'array|null'],
],
'mb_ereg_match' => [
'old' => ['bool', 'pattern'=>'string', 'string'=>'string', 'options='=>'string'],
'new' => ['bool', 'pattern'=>'string', 'string'=>'string', 'options='=>'string|null'],
],
'mb_ereg_replace' => [
'old' => ['string|false', 'pattern'=>'string', 'replacement'=>'string', 'string'=>'string', 'options='=>'string'],
'new' => ['string|false|null', 'pattern'=>'string', 'replacement'=>'string', 'string'=>'string', 'options='=>'string|null'],
],
'mb_ereg_replace_callback' => [
'old' => ['string|false|null', 'pattern'=>'string', 'callback'=>'callable', 'string'=>'string', 'options='=>'string'],
'new' => ['string|false|null', 'pattern'=>'string', 'callback'=>'callable', 'string'=>'string', 'options='=>'string|null'],
],
'mb_ereg_search' => [
'old' => ['bool', 'pattern='=>'string', 'options='=>'string'],
'new' => ['bool', 'pattern='=>'string|null', 'options='=>'string|null'],
],
'mb_ereg_search_init' => [
'old' => ['bool', 'string'=>'string', 'pattern='=>'string', 'options='=>'string'],
'new' => ['bool', 'string'=>'string', 'pattern='=>'string|null', 'options='=>'string|null'],
],
'mb_ereg_search_pos' => [