Skip to content

Commit 9297fc6

Browse files
Remove some Ds stubs from functionMap
1 parent 692909b commit 9297fc6

File tree

2 files changed

+8
-170
lines changed

2 files changed

+8
-170
lines changed

resources/functionMap.php

Lines changed: 0 additions & 170 deletions
Original file line numberDiff line numberDiff line change
@@ -1725,214 +1725,44 @@
17251725
'DOTNET::__construct' => ['void', 'assembly_name'=>'string', 'class_name'=>'string', 'codepage='=>'int'],
17261726
'dotnet_load' => ['int', 'assembly_name'=>'string', 'datatype_name='=>'string', 'codepage='=>'int'],
17271727
'doubleval' => ['float', 'var'=>'scalar|array|resource|null'],
1728-
'Ds\Collection::clear' => ['void'],
1729-
'Ds\Collection::copy' => ['Ds\Collection'],
1730-
'Ds\Collection::isEmpty' => ['bool'],
1731-
'Ds\Collection::toArray' => ['array'],
17321728
'Ds\Deque::__construct' => ['void', 'values='=>'mixed'],
1733-
'Ds\Deque::allocate' => ['void', 'capacity'=>'int'],
1734-
'Ds\Deque::apply' => ['void', 'callback'=>'callable'],
1735-
'Ds\Deque::capacity' => ['int'],
1736-
'Ds\Deque::clear' => ['void'],
1737-
'Ds\Deque::contains' => ['bool', '...values='=>'mixed'],
1738-
'Ds\Deque::copy' => ['Ds\Deque'],
17391729
'Ds\Deque::count' => ['0|positive-int'],
1740-
'Ds\Deque::filter' => ['Ds\Deque', 'callback='=>'callable'],
1741-
'Ds\Deque::find' => ['mixed', 'value'=>'mixed'],
1742-
'Ds\Deque::first' => ['mixed'],
1743-
'Ds\Deque::get' => ['void', 'index'=>'int'],
1744-
'Ds\Deque::insert' => ['void', 'index'=>'int', '...values='=>'mixed'],
1745-
'Ds\Deque::isEmpty' => ['bool'],
1746-
'Ds\Deque::join' => ['string', 'glue='=>'string'],
17471730
'Ds\Deque::jsonSerialize' => ['array'],
1748-
'Ds\Deque::last' => ['mixed'],
1749-
'Ds\Deque::map' => ['Ds\Deque', 'callback'=>'callable'],
1750-
'Ds\Deque::merge' => ['Ds\Deque', 'values'=>'mixed'],
1751-
'Ds\Deque::pop' => ['mixed'],
1752-
'Ds\Deque::push' => ['void', '...values='=>'mixed'],
1753-
'Ds\Deque::reduce' => ['mixed', 'callback'=>'callable', 'initial='=>'mixed'],
1754-
'Ds\Deque::remove' => ['mixed', 'index'=>'int'],
1755-
'Ds\Deque::reverse' => ['void'],
1756-
'Ds\Deque::reversed' => ['Ds\Deque'],
1757-
'Ds\Deque::rotate' => ['void', 'rotations'=>'int'],
1758-
'Ds\Deque::set' => ['void', 'index'=>'int', 'value'=>'mixed'],
1759-
'Ds\Deque::shift' => ['mixed'],
1760-
'Ds\Deque::slice' => ['Ds\Deque', 'index'=>'int', 'length='=>'?int'],
1761-
'Ds\Deque::sort' => ['void', 'comparator='=>'callable'],
1762-
'Ds\Deque::sorted' => ['Ds\Deque', 'comparator='=>'callable'],
1763-
'Ds\Deque::sum' => ['int|float'],
1764-
'Ds\Deque::toArray' => ['array'],
1765-
'Ds\Deque::unshift' => ['void', '...values='=>'mixed'],
1766-
'Ds\Hashable::equals' => ['bool', 'obj'=>'mixed'],
1767-
'Ds\Hashable::hash' => ['mixed'],
17681731
'Ds\Map::__construct' => ['void', 'values='=>'mixed'],
17691732
'Ds\Map::allocate' => ['void', 'capacity'=>'int'],
17701733
'Ds\Map::apply' => ['void', 'callback'=>'callable'],
1771-
'Ds\Map::capacity' => ['int'],
1772-
'Ds\Map::clear' => ['void'],
1773-
'Ds\Map::copy' => ['Ds\Map'],
17741734
'Ds\Map::count' => ['0|positive-int'],
1775-
'Ds\Map::diff' => ['Ds\Map', 'map'=>'Ds\Map'],
1776-
'Ds\Map::filter' => ['Ds\Map', 'callback='=>'callable'],
1777-
'Ds\Map::first' => ['Ds\Pair'],
1778-
'Ds\Map::get' => ['mixed', 'key'=>'mixed', 'default='=>'mixed'],
1779-
'Ds\Map::hasKey' => ['bool', 'key'=>'mixed'],
1780-
'Ds\Map::hasValue' => ['bool', 'value'=>'mixed'],
1781-
'Ds\Map::intersect' => ['Ds\Map', 'map'=>'Ds\Map'],
1782-
'Ds\Map::isEmpty' => ['bool'],
17831735
'Ds\Map::jsonSerialize' => ['array'],
1784-
'Ds\Map::keys' => ['Ds\Set'],
17851736
'Ds\Map::ksort' => ['void', 'comparator='=>'callable'],
1786-
'Ds\Map::ksorted' => ['Ds\Map', 'comparator='=>'callable'],
1787-
'Ds\Map::last' => ['Ds\Pair'],
1788-
'Ds\Map::map' => ['Ds\Map', 'callback'=>'callable'],
1789-
'Ds\Map::merge' => ['Ds\Map', 'values'=>'mixed'],
1790-
'Ds\Map::pairs' => ['Ds\Sequence'],
17911737
'Ds\Map::put' => ['void', 'key'=>'mixed', 'value'=>'mixed'],
17921738
'Ds\Map::putAll' => ['void', 'values'=>'mixed'],
1793-
'Ds\Map::reduce' => ['mixed', 'callback'=>'callable', 'initial='=>'mixed'],
1794-
'Ds\Map::remove' => ['mixed', 'key'=>'mixed', 'default='=>'mixed'],
17951739
'Ds\Map::reverse' => ['void'],
1796-
'Ds\Map::reversed' => ['Ds\Map'],
1797-
'Ds\Map::skip' => ['Ds\Pair', 'position'=>'int'],
1798-
'Ds\Map::slice' => ['Ds\Map', 'index'=>'int', 'length='=>'?int'],
17991740
'Ds\Map::sort' => ['void', 'comparator='=>'callable'],
1800-
'Ds\Map::sorted' => ['Ds\Map', 'comparator='=>'callable'],
1801-
'Ds\Map::sum' => ['int|float'],
1802-
'Ds\Map::toArray' => ['array'],
1803-
'Ds\Map::union' => ['Ds\Map', 'map'=>'Ds\Map'],
1804-
'Ds\Map::values' => ['Ds\Sequence'],
1805-
'Ds\Map::xor' => ['Ds\Map', 'map'=>'Ds\Map'],
1806-
'Ds\Pair::__construct' => ['void', 'key='=>'mixed', 'value='=>'mixed'],
1807-
'Ds\Pair::copy' => ['Ds\Pair'],
18081741
'Ds\Pair::jsonSerialize' => ['array'],
1809-
'Ds\Pair::toArray' => ['array'],
1810-
'Ds\PriorityQueue::__construct' => ['void'],
1811-
'Ds\PriorityQueue::allocate' => ['void', 'capacity'=>'int'],
1812-
'Ds\PriorityQueue::capacity' => ['int'],
1813-
'Ds\PriorityQueue::clear' => ['void'],
1814-
'Ds\PriorityQueue::copy' => ['Ds\PriorityQueue'],
18151742
'Ds\PriorityQueue::count' => ['0|positive-int'],
1816-
'Ds\PriorityQueue::isEmpty' => ['bool'],
18171743
'Ds\PriorityQueue::jsonSerialize' => ['array'],
1818-
'Ds\PriorityQueue::peek' => ['mixed'],
1819-
'Ds\PriorityQueue::pop' => ['mixed'],
18201744
'Ds\PriorityQueue::push' => ['void', 'value'=>'mixed', 'priority'=>'int'],
1821-
'Ds\PriorityQueue::toArray' => ['array'],
1822-
'Ds\Queue::__construct' => ['void', 'values='=>'mixed'],
18231745
'Ds\Queue::allocate' => ['void', 'capacity'=>'int'],
1824-
'Ds\Queue::capacity' => ['int'],
1825-
'Ds\Queue::clear' => ['void'],
1826-
'Ds\Queue::copy' => ['Ds\Queue'],
18271746
'Ds\Queue::count' => ['0|positive-int'],
1828-
'Ds\Queue::isEmpty' => ['bool'],
18291747
'Ds\Queue::jsonSerialize' => ['array'],
1830-
'Ds\Queue::peek' => ['mixed'],
1831-
'Ds\Queue::pop' => ['mixed'],
18321748
'Ds\Queue::push' => ['void', '...values='=>'mixed'],
1833-
'Ds\Queue::toArray' => ['array'],
1834-
'Ds\Sequence::allocate' => ['void', 'capacity'=>'int'],
1835-
'Ds\Sequence::apply' => ['void', 'callback'=>'callable'],
1836-
'Ds\Sequence::capacity' => ['int'],
1837-
'Ds\Sequence::contains' => ['bool', '...values='=>'mixed'],
1838-
'Ds\Sequence::filter' => ['Ds\Sequence', 'callback='=>'callable'],
1839-
'Ds\Sequence::find' => ['mixed', 'value'=>'mixed'],
1840-
'Ds\Sequence::first' => ['mixed'],
1841-
'Ds\Sequence::get' => ['mixed', 'index'=>'int'],
1842-
'Ds\Sequence::insert' => ['void', 'index'=>'int', '...values='=>'mixed'],
1843-
'Ds\Sequence::join' => ['string', 'glue='=>'string'],
1844-
'Ds\Sequence::last' => ['void'],
1845-
'Ds\Sequence::map' => ['Ds\Sequence', 'callback'=>'callable'],
1846-
'Ds\Sequence::merge' => ['Ds\Sequence', 'values'=>'mixed'],
1847-
'Ds\Sequence::pop' => ['mixed'],
1848-
'Ds\Sequence::push' => ['void', '...values='=>'mixed'],
1849-
'Ds\Sequence::reduce' => ['mixed', 'callback'=>'callable', 'initial='=>'mixed'],
1850-
'Ds\Sequence::remove' => ['mixed', 'index'=>'int'],
1851-
'Ds\Sequence::reverse' => ['void'],
1852-
'Ds\Sequence::reversed' => ['Ds\Sequence'],
1853-
'Ds\Sequence::rotate' => ['void', 'rotations'=>'int'],
1854-
'Ds\Sequence::set' => ['void', 'index'=>'int', 'value'=>'mixed'],
1855-
'Ds\Sequence::shift' => ['mixed'],
1856-
'Ds\Sequence::slice' => ['Ds\Sequence', 'index'=>'int', 'length='=>'?int'],
1857-
'Ds\Sequence::sort' => ['void', 'comparator='=>'callable'],
1858-
'Ds\Sequence::sorted' => ['Ds\Sequence', 'comparator='=>'callable'],
1859-
'Ds\Sequence::sum' => ['int|float'],
1860-
'Ds\Sequence::unshift' => ['void', '...values='=>'mixed'],
1861-
'Ds\Set::__construct' => ['void', 'values='=>'mixed'],
18621749
'Ds\Set::add' => ['void', '...values='=>'mixed'],
18631750
'Ds\Set::allocate' => ['void', 'capacity'=>'int'],
1864-
'Ds\Set::capacity' => ['int'],
18651751
'Ds\Set::clear' => ['void'],
1866-
'Ds\Set::contains' => ['bool', '...values='=>'mixed'],
1867-
'Ds\Set::copy' => ['Ds\Set'],
18681752
'Ds\Set::count' => ['0|positive-int'],
1869-
'Ds\Set::diff' => ['Ds\Set', 'set'=>'Ds\Set'],
1870-
'Ds\Set::filter' => ['Ds\Set', 'callback='=>'callable'],
1871-
'Ds\Set::first' => ['mixed'],
1872-
'Ds\Set::get' => ['mixed', 'index'=>'int'],
1873-
'Ds\Set::intersect' => ['Ds\Set', 'set'=>'Ds\Set'],
1874-
'Ds\Set::isEmpty' => ['bool'],
18751753
'Ds\Set::join' => ['string', 'glue='=>'string'],
18761754
'Ds\Set::jsonSerialize' => ['array'],
1877-
'Ds\Set::last' => ['mixed'],
1878-
'Ds\Set::map' => ['Ds\Set', 'callback='=>'callable'],
1879-
'Ds\Set::merge' => ['Ds\Set', 'values'=>'mixed'],
1880-
'Ds\Set::reduce' => ['mixed', 'callback'=>'callable', 'initial='=>'mixed'],
18811755
'Ds\Set::remove' => ['void', '...values='=>'mixed'],
18821756
'Ds\Set::reverse' => ['void'],
1883-
'Ds\Set::reversed' => ['Ds\Set'],
1884-
'Ds\Set::slice' => ['Ds\Set', 'index'=>'int', 'length='=>'?int'],
18851757
'Ds\Set::sort' => ['void', 'comparator='=>'callable'],
1886-
'Ds\Set::sorted' => ['Ds\Set', 'comparator='=>'callable'],
1887-
'Ds\Set::sum' => ['int|float'],
1888-
'Ds\Set::toArray' => ['array'],
1889-
'Ds\Set::union' => ['Ds\Set', 'set'=>'Ds\Set'],
1890-
'Ds\Set::xor' => ['Ds\Set', 'set'=>'Ds\Set'],
1891-
'Ds\Stack::__construct' => ['void', 'values='=>'mixed'],
18921758
'Ds\Stack::allocate' => ['void', 'capacity'=>'int'],
1893-
'Ds\Stack::capacity' => ['int'],
1894-
'Ds\Stack::clear' => ['void'],
1895-
'Ds\Stack::copy' => ['Ds\Stack'],
18961759
'Ds\Stack::count' => ['0|positive-int'],
1897-
'Ds\Stack::isEmpty' => ['bool'],
18981760
'Ds\Stack::jsonSerialize' => ['array'],
1899-
'Ds\Stack::peek' => ['mixed'],
1900-
'Ds\Stack::pop' => ['mixed'],
1901-
'Ds\Stack::push' => ['void', '...values='=>'mixed'],
1902-
'Ds\Stack::toArray' => ['array'],
19031761
'Ds\Vector::__construct' => ['void', 'values='=>'mixed'],
1904-
'Ds\Vector::allocate' => ['void', 'capacity'=>'int'],
1905-
'Ds\Vector::apply' => ['void', 'callback'=>'callable'],
1906-
'Ds\Vector::capacity' => ['int'],
1907-
'Ds\Vector::clear' => ['void'],
1908-
'Ds\Vector::contains' => ['bool', '...values='=>'mixed'],
1909-
'Ds\Vector::copy' => ['Ds\Vector'],
19101762
'Ds\Vector::count' => ['0|positive-int'],
1911-
'Ds\Vector::filter' => ['Ds\Vector', 'callback='=>'callable'],
1912-
'Ds\Vector::find' => ['mixed', 'value'=>'mixed'],
1913-
'Ds\Vector::first' => ['mixed'],
1914-
'Ds\Vector::get' => ['mixed', 'index'=>'int'],
1915-
'Ds\Vector::insert' => ['void', 'index'=>'int', '...values='=>'mixed'],
1916-
'Ds\Vector::isEmpty' => ['bool'],
19171763
'Ds\Vector::join' => ['string', 'glue='=>'string'],
19181764
'Ds\Vector::jsonSerialize' => ['array'],
1919-
'Ds\Vector::last' => ['mixed'],
1920-
'Ds\Vector::map' => ['Ds\Vector', 'callback'=>'callable'],
1921-
'Ds\Vector::merge' => ['Ds\Vector', 'values'=>'mixed'],
1922-
'Ds\Vector::pop' => ['mixed'],
1923-
'Ds\Vector::push' => ['void', '...values='=>'mixed'],
1924-
'Ds\Vector::reduce' => ['mixed', 'callback'=>'callable', 'initial='=>'mixed'],
1925-
'Ds\Vector::remove' => ['mixed', 'index'=>'int'],
1926-
'Ds\Vector::reverse' => ['void'],
1927-
'Ds\Vector::reversed' => ['Ds\Vector'],
1928-
'Ds\Vector::rotate' => ['void', 'rotations'=>'int'],
1929-
'Ds\Vector::set' => ['void', 'index'=>'int', 'value'=>'mixed'],
1930-
'Ds\Vector::shift' => ['mixed'],
1931-
'Ds\Vector::slice' => ['Ds\Vector', 'index'=>'int', 'length='=>'?int'],
1932-
'Ds\Vector::sort' => ['void', 'comparator='=>'callable'],
1933-
'Ds\Vector::sorted' => ['Ds\Vector', 'comparator='=>'callable'],
19341765
'Ds\Vector::sum' => ['int|float'],
1935-
'Ds\Vector::toArray' => ['array'],
19361766
'Ds\Vector::unshift' => ['void', '...values='=>'mixed'],
19371767
'each' => ['array', '&rw_arr'=>'array'],
19381768
'easter_date' => ['int', 'year='=>'int'],

stubs/ext-ds.stub

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,14 @@ final class Deque implements Sequence
8181
{
8282
}
8383

84+
/**
85+
* @param (callable(TValue, TValue): int)|null $comparator
86+
* @return Deque<TValue>
87+
*/
88+
public function sorted(?callable $comparator = null): Deque
89+
{
90+
}
91+
8492
/**
8593
* @return Deque<TValue>
8694
*/

0 commit comments

Comments
 (0)