1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-14 02:07:37 +01:00
psalm/src/Psalm/FunctionDocblockComment.php
Matt Brown 543872f186 Allow @psalm-ignore-falsable-return annotation
Downgrades issues around use of current(), reset(), end() etc.
2018-01-24 18:52:58 -05:00

62 lines
1.2 KiB
PHP

<?php
namespace Psalm;
class FunctionDocblockComment
{
/**
* @var string|null
*/
public $return_type = null;
/**
* @var array<int, array{name:string, type:string, line_number: int}>
*/
public $params = [];
/**
* Whether or not the function is deprecated
*
* @var bool
*/
public $deprecated = false;
/**
* Whether or not the function uses get_args
*
* @var bool
*/
public $variadic = false;
/**
* Whether or not to ignore the nullability of this function's return type
*
* @var bool
*/
public $ignore_nullable_return = false;
/**
* Whether or not to ignore the nullability of this function's return type
*
* @var bool
*/
public $ignore_falsable_return = false;
/**
* @var array<int, string>
*/
public $suppress = [];
/** @var int */
public $return_type_line_number;
/**
* @var array<int, array<int, string>>
*/
public $template_types = [];
/**
* @var array<int, array{template_type: string, param_name: string, line_number: int}>
*/
public $template_typeofs = [];
}