mirror of
https://github.com/danog/psalm.git
synced 2024-12-02 09:37:59 +01:00
$resource
parameter of mkdir()
is nullable since PHP 7.3
Fixes vimeo/psalm#10796
This commit is contained in:
parent
02b58a592f
commit
5c780c7b05
@ -6857,7 +6857,7 @@ return [
|
||||
'ming_setswfcompression' => ['void', 'level'=>'int'],
|
||||
'ming_useconstants' => ['void', 'use'=>'int'],
|
||||
'ming_useswfversion' => ['void', 'version'=>'int'],
|
||||
'mkdir' => ['bool', 'directory'=>'string', 'permissions='=>'int', 'recursive='=>'bool', 'context='=>'resource'],
|
||||
'mkdir' => ['bool', 'directory'=>'string', 'permissions='=>'int', 'recursive='=>'bool', 'context='=>'null|resource'],
|
||||
'mktime' => ['int|false', 'hour'=>'int', 'minute='=>'int|null', 'second='=>'int|null', 'month='=>'int|null', 'day='=>'int|null', 'year='=>'int|null'],
|
||||
'money_format' => ['string', 'format'=>'string', 'value'=>'float'],
|
||||
'Mongo::__construct' => ['void', 'server='=>'string', 'options='=>'array', 'driver_options='=>'array'],
|
||||
|
@ -116,6 +116,10 @@ return [
|
||||
'old' => ['resource[]|resource|false', 'ldap'=>'resource|resource[]', 'base'=>'array|string', 'filter'=>'array|string', 'attributes='=>'array', 'attributes_only='=>'int', 'sizelimit='=>'int', 'timelimit='=>'int', 'deref='=>'int'],
|
||||
'new' => ['resource[]|resource|false', 'ldap'=>'resource|resource[]', 'base'=>'array|string', 'filter'=>'array|string', 'attributes='=>'array', 'attributes_only='=>'int', 'sizelimit='=>'int', 'timelimit='=>'int', 'deref='=>'int', 'controls='=>'array'],
|
||||
],
|
||||
'mkdir' => [
|
||||
'old' => ['bool', 'directory'=>'string', 'permissions='=>'int', 'recursive='=>'bool', 'context='=>'resource'],
|
||||
'new' => ['bool', 'directory'=>'string', 'permissions='=>'int', 'recursive='=>'bool', 'context='=>'null|resource'],
|
||||
],
|
||||
],
|
||||
'removed' => [
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user