1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Fix invalid return type in callmap.

apu_delete() only returns boolean.
http://php.net/manual/en/function.apcu-delete.php
This commit is contained in:
ADmad 2019-02-17 23:34:00 +05:30 committed by Matthew Brown
parent 40a91eab6e
commit 7298638dff

View File

@ -234,7 +234,7 @@ return [
'apcu_cas' => ['bool', 'key'=>'string', 'old'=>'int', 'new'=>'int'],
'apcu_clear_cache' => ['bool'],
'apcu_dec' => ['int', 'key'=>'string', 'step='=>'int', '&w_success='=>'bool', 'ttl='=>'int'],
'apcu_delete' => ['bool|array<int,string>', 'key'=>'string|string[]|APCUIterator'],
'apcu_delete' => ['bool', 'key'=>'string|string[]|APCUIterator'],
'apcu_enabled' => ['bool'],
'apcu_entry' => ['mixed', 'key'=>'string', 'generator'=>'callable', 'ttl='=>'int'],
'apcu_exists' => ['bool', 'keys'=>'string'],