mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +01:00
Allow custom sorting methods to only return true/false
This commit is contained in:
parent
6eabdf326d
commit
7a7bc26ccd
@ -361,8 +361,8 @@ return [
|
||||
'ArrayIterator::seek' => ['void', 'position'=>'int'],
|
||||
'ArrayIterator::serialize' => ['string'],
|
||||
'ArrayIterator::setFlags' => ['void', 'flags'=>'string'],
|
||||
'ArrayIterator::uasort' => ['void', 'cmp_function'=>'callable(mixed,mixed):int'],
|
||||
'ArrayIterator::uksort' => ['void', 'cmp_function'=>'callable(mixed,mixed):int'],
|
||||
'ArrayIterator::uasort' => ['void', 'cmp_function'=>'callable(mixed,mixed):(int|bool)'],
|
||||
'ArrayIterator::uksort' => ['void', 'cmp_function'=>'callable(mixed,mixed):(int|bool)'],
|
||||
'ArrayIterator::unserialize' => ['string', 'serialized'=>'string'],
|
||||
'ArrayIterator::valid' => ['bool'],
|
||||
'ArrayObject::__construct' => ['void', 'input='=>'array|object', 'flags='=>'int', 'iterator_class='=>'string'],
|
||||
@ -384,8 +384,8 @@ return [
|
||||
'ArrayObject::serialize' => ['string'],
|
||||
'ArrayObject::setFlags' => ['void', 'flags'=>'int'],
|
||||
'ArrayObject::setIteratorClass' => ['void', 'iterator_class'=>'string'],
|
||||
'ArrayObject::uasort' => ['void', 'cmp_function'=>'callable(mixed,mixed):int'],
|
||||
'ArrayObject::uksort' => ['void', 'cmp_function'=>'callable(mixed,mixed):int'],
|
||||
'ArrayObject::uasort' => ['void', 'cmp_function'=>'callable(mixed,mixed):(int|bool)'],
|
||||
'ArrayObject::uksort' => ['void', 'cmp_function'=>'callable(mixed,mixed):(int|bool)'],
|
||||
'ArrayObject::unserialize' => ['void', 'serialized'=>'string'],
|
||||
'arsort' => ['bool', '&rw_array_arg'=>'array', 'sort_flags='=>'int'],
|
||||
'asin' => ['float', 'number'=>'float'],
|
||||
@ -12317,7 +12317,7 @@ return [
|
||||
'TypeError::getPrevious' => ['Throwable|TypeError'],
|
||||
'TypeError::getTrace' => ['array'],
|
||||
'TypeError::getTraceAsString' => ['string'],
|
||||
'uasort' => ['bool', '&rw_array_arg'=>'array', 'cmp_function'=>'callable(mixed,mixed):int'],
|
||||
'uasort' => ['bool', '&rw_array_arg'=>'array', 'cmp_function'=>'callable(mixed,mixed):(int|bool)'],
|
||||
'ucfirst' => ['string', 'str'=>'string'],
|
||||
'UConverter::__construct' => ['void', 'destination_encoding'=>'string', 'source_encoding='=>'string'],
|
||||
'UConverter::convert' => ['string', 'str'=>'string', 'reverse='=>'bool'],
|
||||
@ -12430,7 +12430,7 @@ return [
|
||||
'urlencode' => ['string', 'str'=>'string'],
|
||||
'use_soap_error_handler' => ['bool', 'handler='=>'bool'],
|
||||
'usleep' => ['void', 'micro_seconds'=>'int'],
|
||||
'usort' => ['bool', '&rw_array_arg'=>'array', 'cmp_function'=>'callable(mixed,mixed):int'],
|
||||
'usort' => ['bool', '&rw_array_arg'=>'array', 'cmp_function'=>'callable(mixed,mixed):(int|bool)'],
|
||||
'utf8_decode' => ['string', 'data'=>'string'],
|
||||
'utf8_encode' => ['string', 'data'=>'string'],
|
||||
'V8Js::__construct' => ['void', 'object_name='=>'string', 'variables='=>'array', 'extensions='=>'array', 'report_uncaught_exceptions='=>'bool'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user