Skip to content

Commit

Permalink
Merge pull request #9999 from kkmuffme/improve-generic-offset-method-…
Browse files Browse the repository at this point in the history
…types

offsetExists/Get/Set/Unset types were too generic
  • Loading branch information
orklah committed Jul 6, 2023
2 parents ae19418 + 05f4e45 commit b12e4f2
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 96 deletions.
96 changes: 48 additions & 48 deletions dictionaries/CallMap.php
Expand Up @@ -425,10 +425,10 @@
'array_walk\'1' => ['bool', '&rw_array'=>'object', 'callback'=>'callable', 'arg='=>'mixed'],
'array_walk_recursive' => ['bool', '&rw_array'=>'array', 'callback'=>'callable', 'arg='=>'mixed'],
'array_walk_recursive\'1' => ['bool', '&rw_array'=>'object', 'callback'=>'callable', 'arg='=>'mixed'],
'ArrayAccess::offsetExists' => ['bool', 'offset'=>'mixed'],
'ArrayAccess::offsetGet' => ['mixed', 'offset'=>'mixed'],
'ArrayAccess::offsetSet' => ['void', 'offset'=>'mixed', 'value'=>'mixed'],
'ArrayAccess::offsetUnset' => ['void', 'offset'=>'mixed'],
'ArrayAccess::offsetExists' => ['bool', 'offset'=>'int|string'],
'ArrayAccess::offsetGet' => ['mixed', 'offset'=>'int|string'],
'ArrayAccess::offsetSet' => ['void', 'offset'=>'int|string|null', 'value'=>'mixed'],
'ArrayAccess::offsetUnset' => ['void', 'offset'=>'int|string'],
'ArrayIterator::__construct' => ['void', 'array='=>'array|object', 'flags='=>'int'],
'ArrayIterator::append' => ['void', 'value'=>'mixed'],
'ArrayIterator::asort' => ['true', 'flags='=>'int'],
Expand All @@ -443,7 +443,7 @@
'ArrayIterator::next' => ['void'],
'ArrayIterator::offsetExists' => ['bool', 'key'=>'string|int'],
'ArrayIterator::offsetGet' => ['mixed', 'key'=>'string|int'],
'ArrayIterator::offsetSet' => ['void', 'key'=>'string|int', 'value'=>'mixed'],
'ArrayIterator::offsetSet' => ['void', 'key'=>'string|int|null', 'value'=>'mixed'],
'ArrayIterator::offsetUnset' => ['void', 'key'=>'string|int'],
'ArrayIterator::rewind' => ['void'],
'ArrayIterator::seek' => ['void', 'offset'=>'int'],
Expand All @@ -467,7 +467,7 @@
'ArrayObject::natsort' => ['true'],
'ArrayObject::offsetExists' => ['bool', 'key'=>'int|string'],
'ArrayObject::offsetGet' => ['mixed|null', 'key'=>'int|string'],
'ArrayObject::offsetSet' => ['void', 'key'=>'int|string', 'value'=>'mixed'],
'ArrayObject::offsetSet' => ['void', 'key'=>'int|string|null', 'value'=>'mixed'],
'ArrayObject::offsetUnset' => ['void', 'key'=>'int|string'],
'ArrayObject::serialize' => ['string'],
'ArrayObject::setFlags' => ['void', 'flags'=>'int'],
Expand Down Expand Up @@ -4348,10 +4348,10 @@
'http\Message\Parser::stream' => ['int', 'stream'=>'resource', 'flags'=>'int', '&message'=>'http\Message'],
'http\Params::__construct' => ['void', 'params='=>'mixed', 'param_sep='=>'mixed', 'arg_sep='=>'mixed', 'val_sep='=>'mixed', 'flags='=>'mixed'],
'http\Params::__toString' => ['string'],
'http\Params::offsetExists' => ['bool', 'name'=>'mixed'],
'http\Params::offsetGet' => ['mixed', 'name'=>'mixed'],
'http\Params::offsetSet' => ['void', 'name'=>'mixed', 'value'=>'mixed'],
'http\Params::offsetUnset' => ['void', 'name'=>'mixed'],
'http\Params::offsetExists' => ['bool', 'name'=>'int|string'],
'http\Params::offsetGet' => ['mixed', 'name'=>'int|string'],
'http\Params::offsetSet' => ['void', 'name'=>'int|string|null', 'value'=>'mixed'],
'http\Params::offsetUnset' => ['void', 'name'=>'int|string'],
'http\Params::toArray' => ['array'],
'http\Params::toString' => ['string'],
'http\QueryString::__construct' => ['void', 'querystring'=>'string'],
Expand All @@ -4366,10 +4366,10 @@
'http\QueryString::getObject' => ['object|mixed', 'name'=>'string', 'defval='=>'mixed', 'delete='=>'bool|false'],
'http\QueryString::getString' => ['string|mixed', 'name'=>'string', 'defval='=>'mixed', 'delete='=>'bool|false'],
'http\QueryString::mod' => ['http\QueryString', 'params='=>'mixed'],
'http\QueryString::offsetExists' => ['bool', 'offset'=>'mixed'],
'http\QueryString::offsetGet' => ['mixed|null', 'offset'=>'mixed'],
'http\QueryString::offsetSet' => ['void', 'offset'=>'mixed', 'value'=>'mixed'],
'http\QueryString::offsetUnset' => ['void', 'offset'=>'mixed'],
'http\QueryString::offsetExists' => ['bool', 'offset'=>'int|string'],
'http\QueryString::offsetGet' => ['mixed|null', 'offset'=>'int|string'],
'http\QueryString::offsetSet' => ['void', 'offset'=>'int|string|null', 'value'=>'mixed'],
'http\QueryString::offsetUnset' => ['void', 'offset'=>'int|string'],
'http\QueryString::serialize' => ['string'],
'http\QueryString::set' => ['http\QueryString', 'params'=>'mixed'],
'http\QueryString::toArray' => ['array'],
Expand Down Expand Up @@ -4493,10 +4493,10 @@
'HttpQueryString::getObject' => ['', 'name'=>'', 'defval'=>'', 'delete'=>''],
'HttpQueryString::getString' => ['', 'name'=>'', 'defval'=>'', 'delete'=>''],
'HttpQueryString::mod' => ['HttpQueryString', 'params'=>'mixed'],
'HttpQueryString::offsetExists' => ['bool', 'offset'=>'mixed'],
'HttpQueryString::offsetGet' => ['mixed', 'offset'=>'mixed'],
'HttpQueryString::offsetSet' => ['void', 'offset'=>'mixed', 'value'=>'mixed'],
'HttpQueryString::offsetUnset' => ['void', 'offset'=>'mixed'],
'HttpQueryString::offsetExists' => ['bool', 'offset'=>'int|string'],
'HttpQueryString::offsetGet' => ['mixed', 'offset'=>'int|string'],
'HttpQueryString::offsetSet' => ['void', 'offset'=>'int|string|null', 'value'=>'mixed'],
'HttpQueryString::offsetUnset' => ['void', 'offset'=>'int|string'],
'HttpQueryString::serialize' => ['string'],
'HttpQueryString::set' => ['string', 'params'=>'mixed'],
'HttpQueryString::singleton' => ['HttpQueryString', 'global='=>'bool'],
Expand Down Expand Up @@ -6189,10 +6189,10 @@
'Judy::memoryUsage' => ['int'],
'Judy::next' => ['mixed', 'index'=>'mixed'],
'Judy::nextEmpty' => ['mixed', 'index'=>'mixed'],
'Judy::offsetExists' => ['bool', 'offset'=>'mixed'],
'Judy::offsetGet' => ['mixed', 'offset'=>'mixed'],
'Judy::offsetSet' => ['bool', 'offset'=>'mixed', 'value'=>'mixed'],
'Judy::offsetUnset' => ['bool', 'offset'=>'mixed'],
'Judy::offsetExists' => ['bool', 'offset'=>'int|string'],
'Judy::offsetGet' => ['mixed', 'offset'=>'int|string'],
'Judy::offsetSet' => ['bool', 'offset'=>'int|string|null', 'value'=>'mixed'],
'Judy::offsetUnset' => ['bool', 'offset'=>'int|string'],
'Judy::prev' => ['mixed', 'index'=>'mixed'],
'Judy::prevEmpty' => ['mixed', 'index'=>'mixed'],
'Judy::size' => ['int'],
Expand Down Expand Up @@ -9851,7 +9851,7 @@
'RecursiveArrayIterator::next' => ['void'],
'RecursiveArrayIterator::offsetExists' => ['bool', 'key'=>'string|int'],
'RecursiveArrayIterator::offsetGet' => ['mixed', 'key'=>'string|int'],
'RecursiveArrayIterator::offsetSet' => ['void', 'key'=>'string|int', 'value'=>'string'],
'RecursiveArrayIterator::offsetSet' => ['void', 'key'=>'string|int|null', 'value'=>'string'],
'RecursiveArrayIterator::offsetUnset' => ['void', 'key'=>'string|int'],
'RecursiveArrayIterator::rewind' => ['void'],
'RecursiveArrayIterator::seek' => ['void', 'offset'=>'int'],
Expand Down Expand Up @@ -11340,7 +11340,7 @@
'SimpleXMLElement::getNamespaces' => ['array<string,string>', 'recursive='=>'bool'],
'SimpleXMLElement::offsetExists' => ['bool', 'offset'=>'int|string'],
'SimpleXMLElement::offsetGet' => ['SimpleXMLElement', 'offset'=>'int|string'],
'SimpleXMLElement::offsetSet' => ['void', 'offset'=>'int|string', 'value'=>'mixed'],
'SimpleXMLElement::offsetSet' => ['void', 'offset'=>'int|string|null', 'value'=>'mixed'],
'SimpleXMLElement::offsetUnset' => ['void', 'offset'=>'int|string'],
'SimpleXMLElement::registerXPathNamespace' => ['bool', 'prefix'=>'string', 'namespace'=>'string'],
'SimpleXMLElement::saveXML' => ['string|bool', 'filename='=>'?string'],
Expand Down Expand Up @@ -13653,10 +13653,10 @@
'Thread::merge' => ['bool', 'from'=>'', 'overwrite='=>'mixed'],
'Thread::notify' => ['bool'],
'Thread::notifyOne' => ['bool'],
'Thread::offsetExists' => ['bool', 'offset'=>'mixed'],
'Thread::offsetGet' => ['mixed', 'offset'=>'mixed'],
'Thread::offsetSet' => ['void', 'offset'=>'mixed', 'value'=>'mixed'],
'Thread::offsetUnset' => ['void', 'offset'=>'mixed'],
'Thread::offsetExists' => ['bool', 'offset'=>'int|string'],
'Thread::offsetGet' => ['mixed', 'offset'=>'int|string'],
'Thread::offsetSet' => ['void', 'offset'=>'int|string|null', 'value'=>'mixed'],
'Thread::offsetUnset' => ['void', 'offset'=>'int|string'],
'Thread::pop' => ['bool'],
'Thread::run' => ['void'],
'Thread::setGarbage' => ['void'],
Expand All @@ -13682,10 +13682,10 @@
'Threaded::merge' => ['bool', 'from'=>'mixed', 'overwrite='=>'bool'],
'Threaded::notify' => ['bool'],
'Threaded::notifyOne' => ['bool'],
'Threaded::offsetExists' => ['bool', 'offset'=>'mixed'],
'Threaded::offsetGet' => ['mixed', 'offset'=>'mixed'],
'Threaded::offsetSet' => ['void', 'offset'=>'mixed', 'value'=>'mixed'],
'Threaded::offsetUnset' => ['void', 'offset'=>'mixed'],
'Threaded::offsetExists' => ['bool', 'offset'=>'int|string'],
'Threaded::offsetGet' => ['mixed', 'offset'=>'int|string'],
'Threaded::offsetSet' => ['void', 'offset'=>'int|string|null', 'value'=>'mixed'],
'Threaded::offsetUnset' => ['void', 'offset'=>'int|string'],
'Threaded::pop' => ['bool'],
'Threaded::run' => ['void'],
'Threaded::setGarbage' => ['void'],
Expand Down Expand Up @@ -14607,10 +14607,10 @@
'Worker::merge' => ['bool', 'from'=>'', 'overwrite='=>'mixed'],
'Worker::notify' => ['bool'],
'Worker::notifyOne' => ['bool'],
'Worker::offsetExists' => ['bool', 'offset'=>'mixed'],
'Worker::offsetGet' => ['mixed', 'offset'=>'mixed'],
'Worker::offsetSet' => ['void', 'offset'=>'mixed', 'value'=>'mixed'],
'Worker::offsetUnset' => ['void', 'offset'=>'mixed'],
'Worker::offsetExists' => ['bool', 'offset'=>'int|string'],
'Worker::offsetGet' => ['mixed', 'offset'=>'int|string'],
'Worker::offsetSet' => ['void', 'offset'=>'int|string|null', 'value'=>'mixed'],
'Worker::offsetUnset' => ['void', 'offset'=>'int|string'],
'Worker::pop' => ['bool'],
'Worker::run' => ['void'],
'Worker::setGarbage' => ['void'],
Expand Down Expand Up @@ -14940,10 +14940,10 @@
'Yaf\Config\Ini::get' => ['mixed', 'name='=>'mixed'],
'Yaf\Config\Ini::key' => ['int|string'],
'Yaf\Config\Ini::next' => ['void'],
'Yaf\Config\Ini::offsetExists' => ['bool', 'name'=>'mixed'],
'Yaf\Config\Ini::offsetGet' => ['mixed', 'name'=>'mixed'],
'Yaf\Config\Ini::offsetSet' => ['void', 'name'=>'mixed', 'value'=>'mixed'],
'Yaf\Config\Ini::offsetUnset' => ['void', 'name'=>'mixed'],
'Yaf\Config\Ini::offsetExists' => ['bool', 'name'=>'int|string'],
'Yaf\Config\Ini::offsetGet' => ['mixed', 'name'=>'int|string'],
'Yaf\Config\Ini::offsetSet' => ['void', 'name'=>'int|string|null', 'value'=>'mixed'],
'Yaf\Config\Ini::offsetUnset' => ['void', 'name'=>'int|string'],
'Yaf\Config\Ini::readonly' => ['bool'],
'Yaf\Config\Ini::rewind' => ['void'],
'Yaf\Config\Ini::set' => ['Yaf\Config_Abstract', 'name'=>'string', 'value'=>'mixed'],
Expand All @@ -14958,10 +14958,10 @@
'Yaf\Config\Simple::get' => ['mixed', 'name='=>'mixed'],
'Yaf\Config\Simple::key' => ['int|string'],
'Yaf\Config\Simple::next' => ['void'],
'Yaf\Config\Simple::offsetExists' => ['bool', 'name'=>'mixed'],
'Yaf\Config\Simple::offsetGet' => ['mixed', 'name'=>'mixed'],
'Yaf\Config\Simple::offsetSet' => ['void', 'name'=>'mixed', 'value'=>'mixed'],
'Yaf\Config\Simple::offsetUnset' => ['void', 'name'=>'mixed'],
'Yaf\Config\Simple::offsetExists' => ['bool', 'name'=>'int|string'],
'Yaf\Config\Simple::offsetGet' => ['mixed', 'name'=>'int|string'],
'Yaf\Config\Simple::offsetSet' => ['void', 'name'=>'int|string|null', 'value'=>'mixed'],
'Yaf\Config\Simple::offsetUnset' => ['void', 'name'=>'int|string'],
'Yaf\Config\Simple::readonly' => ['bool'],
'Yaf\Config\Simple::rewind' => ['void'],
'Yaf\Config\Simple::set' => ['Yaf\Config_Abstract', 'name'=>'string', 'value'=>'mixed'],
Expand Down Expand Up @@ -15228,10 +15228,10 @@
'Yaf\Session::has' => ['bool', 'name'=>'string'],
'Yaf\Session::key' => ['int|string'],
'Yaf\Session::next' => ['void'],
'Yaf\Session::offsetExists' => ['bool', 'name'=>'mixed'],
'Yaf\Session::offsetGet' => ['mixed', 'name'=>'mixed'],
'Yaf\Session::offsetSet' => ['void', 'name'=>'mixed', 'value'=>'mixed'],
'Yaf\Session::offsetUnset' => ['void', 'name'=>'mixed'],
'Yaf\Session::offsetExists' => ['bool', 'name'=>'int|string'],
'Yaf\Session::offsetGet' => ['mixed', 'name'=>'int|string'],
'Yaf\Session::offsetSet' => ['void', 'name'=>'int|string|null', 'value'=>'mixed'],
'Yaf\Session::offsetUnset' => ['void', 'name'=>'int|string'],
'Yaf\Session::rewind' => ['void'],
'Yaf\Session::set' => ['Yaf\Session|false', 'name'=>'string', 'value'=>'mixed'],
'Yaf\Session::start' => ['Yaf\Session'],
Expand Down

0 comments on commit b12e4f2

Please sign in to comment.