mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 13:51:54 +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:
parent
39a822759d
commit
7a65eb1da9
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user