From 7a65eb1da9caeb4d2657c2c08f4ed998dd0b2764 Mon Sep 17 00:00:00 2001 From: Tyson Andre Date: Sun, 12 Jan 2020 12:46:08 -0500 Subject: [PATCH] Fix required parameter after optional in Psalm (#2609) Psalm supports php 7.1 at minimum, so this is no longer necessary. --- src/Psalm/Internal/Analyzer/TypeAnalyzer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Psalm/Internal/Analyzer/TypeAnalyzer.php b/src/Psalm/Internal/Analyzer/TypeAnalyzer.php index 09c05ccf2..5a6121e22 100644 --- a/src/Psalm/Internal/Analyzer/TypeAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/TypeAnalyzer.php @@ -293,13 +293,13 @@ class TypeAnalyzer /** * Used for comparing signature typehints, uses PHP's light contravariance rules * - * @param Type\Union $input_type + * @param ?Type\Union $input_type * @param Type\Union $container_type * * @return bool */ public static function isContainedByInPhp( - Type\Union $input_type = null, + ?Type\Union $input_type, Type\Union $container_type ) { if (!$input_type) {