@@ -1721,11 +1721,11 @@ public function testArrayDiffUassoc(): void
1721
1721
$ this ->checkExplicitMixed = true ;
1722
1722
$ this ->analyse ([__DIR__ . '/data/array_diff_uassoc.php ' ], [
1723
1723
[
1724
- 'Parameter #3 $data_comp_func of function array_diff_uassoc expects callable(string, string ): int<-1, 1>, Closure(int, int): int<-1, 1> given. ' ,
1724
+ 'Parameter #3 $data_comp_func of function array_diff_uassoc expects callable( \' a \' | \' b \' | \' c \' | \' d \' , \' a \' | \' b \' | \' c \' | \' d \' ): int<-1, 1>, Closure(int, int): int<-1, 1> given. ' ,
1725
1725
22 ,
1726
1726
],
1727
1727
[
1728
- 'Parameter #3 $data_comp_func of function array_diff_uassoc expects callable(int, int ): int<-1, 1>, Closure(string, string): int<-1, 1> given. ' ,
1728
+ 'Parameter #3 $data_comp_func of function array_diff_uassoc expects callable(0|1|2|3, 0|1|2|3 ): int<-1, 1>, Closure(string, string): int<-1, 1> given. ' ,
1729
1729
30 ,
1730
1730
],
1731
1731
]);
@@ -1736,11 +1736,11 @@ public function testArrayDiffUkey(): void
1736
1736
$ this ->checkExplicitMixed = true ;
1737
1737
$ this ->analyse ([__DIR__ . '/data/array_diff_ukey.php ' ], [
1738
1738
[
1739
- 'Parameter #3 $key_comp_func of function array_diff_ukey expects callable(string, string ): int<-1, 1>, Closure(int, int): int<-1, 1> given. ' ,
1739
+ 'Parameter #3 $key_comp_func of function array_diff_ukey expects callable( \' a \' | \' b \' | \' c \' | \' d \' , \' a \' | \' b \' | \' c \' | \' d \' ): int<-1, 1>, Closure(int, int): int<-1, 1> given. ' ,
1740
1740
22 ,
1741
1741
],
1742
1742
[
1743
- 'Parameter #3 $key_comp_func of function array_diff_ukey expects callable(int, int ): int<-1, 1>, Closure(string, string): int<-1, 1> given. ' ,
1743
+ 'Parameter #3 $key_comp_func of function array_diff_ukey expects callable(0|1|2|3, 0|1|2|3 ): int<-1, 1>, Closure(string, string): int<-1, 1> given. ' ,
1744
1744
30 ,
1745
1745
],
1746
1746
]);
@@ -1751,11 +1751,11 @@ public function testArrayIntersectUassoc(): void
1751
1751
$ this ->checkExplicitMixed = true ;
1752
1752
$ this ->analyse ([__DIR__ . '/data/array_intersect_uassoc.php ' ], [
1753
1753
[
1754
- 'Parameter #3 $key_compare_func of function array_intersect_uassoc expects callable(string, string ): int<-1, 1>, Closure(int, int): int<-1, 1> given. ' ,
1754
+ 'Parameter #3 $key_compare_func of function array_intersect_uassoc expects callable( \' a \' | \' b \' | \' c \' | \' d \' , \' a \' | \' b \' | \' c \' | \' d \' ): int<-1, 1>, Closure(int, int): int<-1, 1> given. ' ,
1755
1755
22 ,
1756
1756
],
1757
1757
[
1758
- 'Parameter #3 $key_compare_func of function array_intersect_uassoc expects callable(int, int ): int<-1, 1>, Closure(string, string): int<-1, 1> given. ' ,
1758
+ 'Parameter #3 $key_compare_func of function array_intersect_uassoc expects callable(0|1|2|3, 0|1|2|3 ): int<-1, 1>, Closure(string, string): int<-1, 1> given. ' ,
1759
1759
30 ,
1760
1760
],
1761
1761
]);
@@ -1766,11 +1766,11 @@ public function testArrayIntersectUkey(): void
1766
1766
$ this ->checkExplicitMixed = true ;
1767
1767
$ this ->analyse ([__DIR__ . '/data/array_intersect_ukey.php ' ], [
1768
1768
[
1769
- 'Parameter #3 $key_compare_func of function array_intersect_ukey expects callable(string, string ): int<-1, 1>, Closure(int, int): int<-1, 1> given. ' ,
1769
+ 'Parameter #3 $key_compare_func of function array_intersect_ukey expects callable( \' a \' | \' b \' | \' c \' | \' d \' , \' a \' | \' b \' | \' c \' | \' d \' ): int<-1, 1>, Closure(int, int): int<-1, 1> given. ' ,
1770
1770
22 ,
1771
1771
],
1772
1772
[
1773
- 'Parameter #3 $key_compare_func of function array_intersect_ukey expects callable(int, int ): int<-1, 1>, Closure(string, string): int<-1, 1> given. ' ,
1773
+ 'Parameter #3 $key_compare_func of function array_intersect_ukey expects callable(0|1|2|3, 0|1|2|3 ): int<-1, 1>, Closure(string, string): int<-1, 1> given. ' ,
1774
1774
30 ,
1775
1775
],
1776
1776
]);
@@ -1781,34 +1781,34 @@ public function testArrayUdiffAssoc(): void
1781
1781
$ this ->checkExplicitMixed = true ;
1782
1782
$ this ->analyse ([__DIR__ . '/data/array_udiff_assoc.php ' ], [
1783
1783
[
1784
- 'Parameter #3 $key_comp_func of function array_udiff_assoc expects callable(int, int ): int<-1, 1>, Closure(string, string): int<-1, 1> given. ' ,
1784
+ 'Parameter #3 $key_comp_func of function array_udiff_assoc expects callable(1|2, 1|2 ): int<-1, 1>, Closure(string, string): int<-1, 1> given. ' ,
1785
1785
22 ,
1786
1786
],
1787
1787
[
1788
- 'Parameter #3 $key_comp_func of function array_udiff_assoc expects callable(int, int ): int<-1, 1>, Closure(string, string): int<-1, 1> given. ' ,
1788
+ 'Parameter #3 $key_comp_func of function array_udiff_assoc expects callable(1|2|3|4|5, 1|2|3|4|5 ): int<-1, 1>, Closure(string, string): int<-1, 1> given. ' ,
1789
1789
30 ,
1790
1790
],
1791
1791
]);
1792
1792
}
1793
1793
1794
- public function testArrayUdiffUsssoc (): void
1794
+ public function testArrayUdiffUasssoc (): void
1795
1795
{
1796
1796
$ this ->checkExplicitMixed = true ;
1797
1797
$ this ->analyse ([__DIR__ . '/data/array_udiff_uassoc.php ' ], [
1798
1798
[
1799
- 'Parameter #3 $data_comp_func of function array_udiff_uassoc expects callable(string, string ): int<-1, 1>, Closure(int, int): int<-1, 1> given. ' ,
1799
+ 'Parameter #3 $data_comp_func of function array_udiff_uassoc expects callable( \' a \' | \' b \' | \' c \' | \' d \' , \' a \' | \' b \' | \' c \' | \' d \' ): int<-1, 1>, Closure(int, int): int<-1, 1> given. ' ,
1800
1800
28 ,
1801
1801
],
1802
1802
[
1803
- 'Parameter #4 $key_comp_func of function array_udiff_uassoc expects callable(string, string ): int<-1, 1>, Closure(int, int): int<-1, 1> given. ' ,
1803
+ 'Parameter #4 $key_comp_func of function array_udiff_uassoc expects callable( \' a \' | \' b \' | \' c \' | \' d \' , \' a \' | \' b \' | \' c \' | \' d \' ): int<-1, 1>, Closure(int, int): int<-1, 1> given. ' ,
1804
1804
31 ,
1805
1805
],
1806
1806
[
1807
- 'Parameter #3 $data_comp_func of function array_udiff_uassoc expects callable(int, int ): int<-1, 1>, Closure(string, string): int<-1, 1> given. ' ,
1807
+ 'Parameter #3 $data_comp_func of function array_udiff_uassoc expects callable(1|2|3|4|5, 1|2|3|4|5 ): int<-1, 1>, Closure(string, string): int<-1, 1> given. ' ,
1808
1808
39 ,
1809
1809
],
1810
1810
[
1811
- 'Parameter #4 $key_comp_func of function array_udiff_uassoc expects callable(int, int ): int<-1, 1>, Closure(string, string): int<-1, 1> given. ' ,
1811
+ 'Parameter #4 $key_comp_func of function array_udiff_uassoc expects callable(0|1|2|3, 0|1|2|3 ): int<-1, 1>, Closure(string, string): int<-1, 1> given. ' ,
1812
1812
42 ,
1813
1813
],
1814
1814
]);
@@ -1819,11 +1819,11 @@ public function testArrayUintersectAssoc(): void
1819
1819
$ this ->checkExplicitMixed = true ;
1820
1820
$ this ->analyse ([__DIR__ . '/data/array_uintersect_assoc.php ' ], [
1821
1821
[
1822
- 'Parameter #3 $data_compare_func of function array_uintersect_assoc expects callable(string, string ): int<-1, 1>, Closure(int, int): int<-1, 1> given. ' ,
1822
+ 'Parameter #3 $data_compare_func of function array_uintersect_assoc expects callable( \' a \' | \' b \' | \' c \' | \' d \' , \' a \' | \' b \' | \' c \' | \' d \' ): int<-1, 1>, Closure(int, int): int<-1, 1> given. ' ,
1823
1823
22 ,
1824
1824
],
1825
1825
[
1826
- 'Parameter #3 $data_compare_func of function array_uintersect_assoc expects callable(int, int ): int<-1, 1>, Closure(string, string): int<-1, 1> given. ' ,
1826
+ 'Parameter #3 $data_compare_func of function array_uintersect_assoc expects callable(1|2|3|4, 1|2|3|4 ): int<-1, 1>, Closure(string, string): int<-1, 1> given. ' ,
1827
1827
30 ,
1828
1828
],
1829
1829
]);
@@ -1834,19 +1834,19 @@ public function testArrayUintersectUassoc(): void
1834
1834
$ this ->checkExplicitMixed = true ;
1835
1835
$ this ->analyse ([__DIR__ . '/data/array_uintersect_uassoc.php ' ], [
1836
1836
[
1837
- 'Parameter #3 $data_compare_func of function array_uintersect_uassoc expects callable(string, string ): int<-1, 1>, Closure(int, int): int<-1, 1> given. ' ,
1837
+ 'Parameter #3 $data_compare_func of function array_uintersect_uassoc expects callable( \' a \' | \' b \' | \' c \' | \' d \' , \' a \' | \' b \' | \' c \' | \' d \' ): int<-1, 1>, Closure(int, int): int<-1, 1> given. ' ,
1838
1838
28 ,
1839
1839
],
1840
1840
[
1841
- 'Parameter #4 $key_compare_func of function array_uintersect_uassoc expects callable(string, string ): int<-1, 1>, Closure(int, int): int<-1, 1> given. ' ,
1841
+ 'Parameter #4 $key_compare_func of function array_uintersect_uassoc expects callable( \' a \' | \' b \' | \' c \' | \' d \' , \' a \' | \' b \' | \' c \' | \' d \' ): int<-1, 1>, Closure(int, int): int<-1, 1> given. ' ,
1842
1842
31 ,
1843
1843
],
1844
1844
[
1845
- 'Parameter #3 $data_compare_func of function array_uintersect_uassoc expects callable(int, int ): int<-1, 1>, Closure(string, string): int<-1, 1> given. ' ,
1845
+ 'Parameter #3 $data_compare_func of function array_uintersect_uassoc expects callable(1|2|3|4|5, 1|2|3|4|5 ): int<-1, 1>, Closure(string, string): int<-1, 1> given. ' ,
1846
1846
39 ,
1847
1847
],
1848
1848
[
1849
- 'Parameter #4 $key_compare_func of function array_uintersect_uassoc expects callable(int, int ): int<-1, 1>, Closure(string, string): int<-1, 1> given. ' ,
1849
+ 'Parameter #4 $key_compare_func of function array_uintersect_uassoc expects callable(0|1|2|3, 0|1|2|3 ): int<-1, 1>, Closure(string, string): int<-1, 1> given. ' ,
1850
1850
42 ,
1851
1851
],
1852
1852
]);
@@ -1857,11 +1857,11 @@ public function testArrayUintersect(): void
1857
1857
$ this ->checkExplicitMixed = true ;
1858
1858
$ this ->analyse ([__DIR__ . '/data/array_uintersect.php ' ], [
1859
1859
[
1860
- 'Parameter #3 $data_compare_func of function array_uintersect expects callable(string, string ): int<-1, 1>, Closure(int, int): int<-1, 1> given. ' ,
1860
+ 'Parameter #3 $data_compare_func of function array_uintersect expects callable( \' a \' | \' b \' | \' c \' | \' d \' , \' a \' | \' b \' | \' c \' | \' d \' ): int<-1, 1>, Closure(int, int): int<-1, 1> given. ' ,
1861
1861
22 ,
1862
1862
],
1863
1863
[
1864
- 'Parameter #3 $data_compare_func of function array_uintersect expects callable(int, int ): int<-1, 1>, Closure(string, string): int<-1, 1> given. ' ,
1864
+ 'Parameter #3 $data_compare_func of function array_uintersect expects callable(1|2|3|4, 1|2|3|4 ): int<-1, 1>, Closure(string, string): int<-1, 1> given. ' ,
1865
1865
30 ,
1866
1866
],
1867
1867
]);
0 commit comments