mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-29 11:33:33 +01:00
[UnionTypesRector] Do not refactor inherited methods (#6201)
# Failing Test for UnionTypesRector Based on https://getrector.org/demo/6298a30b-d9f5-4fa0-b1f8-9712b0e98582 ``` PHP Fatal error: Declaration of Child::enqueueAt(DateTime|int $at) must be compatible with SomeParent::enqueueAt($at) ```
This commit is contained in:
parent
f17df67963
commit
40c0f3f0c0
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace Vendor {
|
||||
class SomeParent
|
||||
{
|
||||
public function enqueueAt($at)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
namespace App {
|
||||
use Vendor\SomeParent;
|
||||
|
||||
final class Child extends SomeParent
|
||||
{
|
||||
/**
|
||||
* @param DateTime|int $at
|
||||
*/
|
||||
public function enqueueAt($at)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user