Quick Question re Bonds

I have some bonds that their distribution for the month of June is paid in the middle of July- does that sum get reported for this tax year or next year?. I know that ETF distributions for the year-end are recorded in this year, despite when they are paid, but I am unsure about bonds. Thanks for any guidance