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

fix crash in <PHP8 with ResourceBundle

partially reverts https://github.com/vimeo/psalm/pull/8217
This commit is contained in:
kkmuffme 2022-08-16 17:28:54 +02:00
parent 5bf59e4e9b
commit ce76158085
3 changed files with 3 additions and 2 deletions

View File

@ -214,7 +214,7 @@ return [
'new' => ['bool', 'typelib_name'=>'string', 'case_insensitive='=>'true'],
],
'count' => [
'old' => ['int', 'value'=>'Countable|array|SimpleXMLElement|ResourceBundle', 'mode='=>'int'],
'old' => ['int', 'value'=>'Countable|array|SimpleXMLElement', 'mode='=>'int'],
'new' => ['int', 'value'=>'Countable|array', 'mode='=>'int'],
],
'count_chars' => [

View File

@ -10085,7 +10085,7 @@ return [
'copy' => ['bool', 'from'=>'string', 'to'=>'string', 'context='=>'resource'],
'cos' => ['float', 'num'=>'float'],
'cosh' => ['float', 'num'=>'float'],
'count' => ['int', 'value'=>'Countable|array|SimpleXMLElement|ResourceBundle', 'mode='=>'int'],
'count' => ['int', 'value'=>'Countable|array|SimpleXMLElement', 'mode='=>'int'],
'count_chars' => ['array<int,int>|false', 'input'=>'string', 'mode='=>'0|1|2'],
'count_chars\'1' => ['string|false', 'input'=>'string', 'mode='=>'3|4'],
'crack_check' => ['bool', 'dictionary'=>'', 'password'=>'string'],

View File

@ -51,6 +51,7 @@ class InternalCallMapHandlerTest extends TestCase
private static $ignoredFunctions = [
'apcu_entry',
'array_multisort',
'count', // #8346
'bcdiv',
'bcmod',
'bcpowmod',