From 13b503a1a4c29091da2415f41fa838850b5d3f10 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 26 Apr 2018 14:35:24 +0200 Subject: [PATCH] Check doc block signature to match the specified return type Signed-off-by: Morris Jobke --- build/.phan/config.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build/.phan/config.php b/build/.phan/config.php index 9bd61ee568..dc914883f0 100644 --- a/build/.phan/config.php +++ b/build/.phan/config.php @@ -144,6 +144,12 @@ return [ // to fix in your code base. 'quick_mode' => false, + // If true, check to make sure the return type declared + // in the doc-block (if any) matches the return type + // declared in the method signature. This process is + // slow. + 'check_docblock_signature_param_type_match' => true, + // If enabled, check all methods that override a // parent method to make sure its signature is // compatible with the parent's. This check