From fe54318432556576e7e789a9d2698cbac0cfd563 Mon Sep 17 00:00:00 2001 From: Matt Brown Date: Thu, 30 Mar 2017 11:02:59 -0400 Subject: [PATCH] Fix #119 - strtotime can return false --- src/Psalm/CallMap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Psalm/CallMap.php b/src/Psalm/CallMap.php index c8b675092..fc05fa56a 100644 --- a/src/Psalm/CallMap.php +++ b/src/Psalm/CallMap.php @@ -9084,7 +9084,7 @@ return [ 'strtok\'1' => ['string|bool', 'token'=>'string'], 'strtok' => ['string|bool', 'str'=>'string', 'token'=>'string'], 'strtolower' => ['string', 'str'=>'string'], -'strtotime' => ['int', 'time'=>'string', 'now='=>'int'], +'strtotime' => ['int|false', 'time'=>'string', 'now='=>'int'], 'strtoupper' => ['string', 'str'=>'string'], 'strtr\'1' => ['string', 'str'=>'string', 'replace_pairs'=>'array'], 'strtr' => ['string', 'str'=>'string', 'from'=>'string', 'to'=>'string'],