Fix #65419 - Inside trait, self::class != __CLASS__