Skip to content

Commit

Permalink
add E2E test
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Feb 25, 2024
1 parent acbc914 commit f0b303d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/Fixer/Phpdoc/PhpdocTypesOrderFixerTest.php
Expand Up @@ -552,6 +552,21 @@ public static function provideFixWithAlphaAlgorithmCases(): iterable
'<?php /** @param A|((B&C)|D) */',
'<?php /** @param (D|(C&B))|A */',
];

yield [
'<?php /** @var Closure<T>(T): T|null|string */',
'<?php /** @var string|Closure<T>(T): T|null */',
];

yield [
'<?php /** @var \Closure<T of Model, T2, T3>(A|T, T3, T2): (T|T2)|null|string */',
'<?php /** @var string|\Closure<T of Model, T2, T3>(T|A, T3, T2): (T2|T)|null */',
];

yield [
'<?php /** @var Closure<Closure_can_be_regular_class>|null|string */',
'<?php /** @var string|Closure<Closure_can_be_regular_class>|null */',
];
}

/**
Expand Down

0 comments on commit f0b303d

Please sign in to comment.