# Bug Report | Subject | Details | | :------------- | :--------------------| | Rector version | 2.6.1 | | Installed as | composer dependency | ## Minimal PHP Code Causing Issue See https://getrector.com/demo/e5aa473f-24cd-4583-8fef-a85632e51f96 ```php <?php /** * @phpstan-type ConfigArray array{is_dry: bool} * @phpstan-type CustomConfig array{} */ interface Configurable { /** @return ConfigArray|CustomConfig */ public function getConfig(): array; } ``` ### Responsible rules * `RemoveReturnTagIncompatibleWithNativeTypeRector` ## Expected Behavior `RemoveReturnTagIncompatibleWithNativeTypeRector` should respect union types [for `@phpstan-type` types]
Bug Report
Minimal PHP Code Causing Issue
See https://getrector.com/demo/e5aa473f-24cd-4583-8fef-a85632e51f96
Responsible rules
RemoveReturnTagIncompatibleWithNativeTypeRectorExpected Behavior
RemoveReturnTagIncompatibleWithNativeTypeRectorshould respect union types [for@phpstan-typetypes]