From 49b6f01e9312dc1ca4410b8f1f36313b35c7ab68 Mon Sep 17 00:00:00 2001 From: bugreportuser <37939393+bugreportuser@users.noreply.github.com> Date: Fri, 8 Mar 2019 09:16:42 -0600 Subject: [PATCH] Add another test --- tests/InterfaceTest.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/InterfaceTest.php b/tests/InterfaceTest.php index c9237627a..b045cc18e 100644 --- a/tests/InterfaceTest.php +++ b/tests/InterfaceTest.php @@ -523,6 +523,18 @@ class InterfaceTest extends TestCase public function foo(array $f) : void { $this->f = $f; } + } + + class C2 implements I { + /** @var string[] */ + private $f = []; + + /** + * {@inheritDoc} + */ + public function foo(array $f) : void { + $this->f = $f; + } }', ], ];