PHP Class PHPStan\Rules\FunctionReturnTypeCheck

Datei anzeigen Open project: phpstan/phpstan Class Usage Examples

Public Methods

Method Description
checkReturnType ( Scope $scope, PHPStan\Type\Type $returnType, PhpParser\Node\Expr $returnValue = null, string $emptyReturnStatementMessage, string $voidMessage, string $typeMismatchMessage ) : array

Method Details

checkReturnType() public method

public checkReturnType ( Scope $scope, PHPStan\Type\Type $returnType, PhpParser\Node\Expr $returnValue = null, string $emptyReturnStatementMessage, string $voidMessage, string $typeMismatchMessage ) : array
$scope PHPStan\Analyser\Scope
$returnType PHPStan\Type\Type
$returnValue PhpParser\Node\Expr
$emptyReturnStatementMessage string
$voidMessage string
$typeMismatchMessage string
return array