1--TEST-- 2Bug #60809 (TRAITS - PHPDoc Comment Style Bug) 3--FILE-- 4<?php 5class ExampleParent { 6 private $hello_world = "hello foo\n"; 7 public function foo() { 8 echo $this->hello_world; 9 } 10} 11 12class Example extends ExampleParent { 13 use ExampleTrait; 14} 15 16trait ExampleTrait { 17 /** 18 * 19 */ 20 private $hello_world = "hello bar\n"; 21 /** 22 * 23 */ 24 public $prop = "ops"; 25 public function bar() { 26 echo $this->hello_world; 27 } 28} 29 30$x = new Example(); 31$x->foo(); 32$x->bar(); 33?> 34--EXPECT-- 35hello foo 36hello bar 37