1--TEST-- 2Bug #81192: "Declaration should be compatible with" gives incorrect line number with traits 3--FILE-- 4<?php 5 6require __DIR__ . '/bug81192_trait.inc'; 7 8class A { 9 public function foo(): int { 10 return 2; 11 } 12} 13 14class B extends A { 15 use T; 16} 17 18?> 19--EXPECTF-- 20Fatal error: Declaration of T::foo(): string must be compatible with A::foo(): int in %sbug81192_trait.inc on line 4 21