Skip to content

Commit 8238766

Browse files
committed
fix(rector-strict): Ignore wrong cases of RemoveReturnTagIncompatibleWithNativeTypeRector
Signed-off-by: provokateurin <kate@provokateurin.de>
1 parent c71fada commit 8238766

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎build/rector-strict.php‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
*/
77

88
use Rector\DeadCode\Rector\ClassMethod\RemoveDuplicatedReturnSelfDocblockRector;
9+
use Rector\DeadCode\Rector\ClassMethod\RemoveReturnTagIncompatibleWithNativeTypeRector;
910
use Rector\Php81\Rector\Property\ReadOnlyPropertyRector;
1011
use Rector\Php82\Rector\Class_\ReadOnlyClassRector;
1112
use Rector\PHPUnit\CodeQuality\Rector\Class_\AddSeeTestAnnotationRector;
@@ -77,6 +78,10 @@
7778
$nextcloudDir . '/core/Listener/RestrictInteractionListener.php',
7879
$nextcloudDir . '/apps/files_sharing/lib/Listener/RestrictInteractionListener.php',
7980
],
81+
RemoveReturnTagIncompatibleWithNativeTypeRector::class => [
82+
$nextcloudDir . '/lib/public/Sharing/Property/ISharePropertyType.php',
83+
$nextcloudDir . '/lib/public/Sharing/Property/ShareProperty.php',
84+
],
8085
// `@return $this` is more specific than the native `: self` on a
8186
// non-final type; removing it breaks psalm's
8287
// LessSpecificImplementedReturnType check (psalm-strict).

0 commit comments

Comments
 (0)