1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

Fix required parameter after optional in Psalm (#2609)

Psalm supports php 7.1 at minimum, so this is no longer necessary.
This commit is contained in:
Tyson Andre 2020-01-12 12:46:08 -05:00 committed by Matthew Brown
parent 39a822759d
commit 7a65eb1da9

View File

@ -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) {