Skip to content
Permalink
Browse files

Fix required parameter after optional in Psalm (#2609)

Psalm supports php 7.1 at minimum, so this is no longer necessary.
  • Loading branch information
TysonAndre authored and muglug committed Jan 12, 2020
1 parent 39a8227 commit 7a65eb1da9caeb4d2657c2c08f4ed998dd0b2764
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Psalm/Internal/Analyzer/TypeAnalyzer.php
@@ -293,13 +293,13 @@ public static function isContainedBy(
/**
* 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) {

0 comments on commit 7a65eb1

Please sign in to comment.
You can’t perform that action at this time.