Skip to content

Commit

Permalink
fixup! fixup! Update functionMap
Browse files Browse the repository at this point in the history
  • Loading branch information
zonuexe committed Nov 26, 2023
1 parent e07a163 commit 6b3f805
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/functionMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -2968,7 +2968,7 @@
'filter_id' => ['int|false', 'filtername'=>'string'],
'filter_input' => ['mixed', 'type'=>'int', 'variable_name'=>'string', 'filter='=>'int', 'options='=>'array|int'],
'filter_input_array' => ['array|false|null', 'type'=>'int', 'definition='=>'int|array', 'add_empty='=>'bool'],
'filter_list' => ['non-non-empty-list<non-falsy-string>'],
'filter_list' => ['non-empty-list<non-falsy-string>'],
'filter_var' => ['mixed', 'variable'=>'mixed', 'filter='=>'int', 'options='=>'mixed'],
'filter_var_array' => ['array|false|null', 'data'=>'array', 'definition='=>'mixed', 'add_empty='=>'bool'],
'FilterIterator::__construct' => ['void', 'iterator'=>'Iterator'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
use PHPStan\Type\Constant\ConstantBooleanType;
use PHPStan\Type\Constant\ConstantStringType;
use PHPStan\Type\FileTypeMapper;
use PHPStan\Type\IntegerRangeType;
use PHPStan\Type\IntegerType;
use PHPStan\Type\MixedType;
use PHPStan\Type\NullType;
Expand Down Expand Up @@ -95,9 +96,9 @@ public function dataFunctions(): array
new ConstantStringType('errors'),
], [
new IntegerType(),
new ArrayType(new IntegerType(), new StringType()),
new ArrayType(IntegerRangeType::fromInterval(0, null), new StringType()),
new IntegerType(),
new ArrayType(new IntegerType(), new StringType()),
new ArrayType(IntegerRangeType::fromInterval(0, null), new StringType()),
]),
]),
new UnionType([
Expand Down

0 comments on commit 6b3f805

Please sign in to comment.