And in the name of the Maharil they wrote, that if the eruv broke, even before the first Shabbat – it is permitted, since at the time of placement it was whole, (Magen Avraham subsection 3) but this is not implied by the poskim. However, this is certainly so, that if it was only whole at the onset of Shabbat – we are no longer concerned if it breaks on Shabbat. And there is one who wrote the opposite, that even if it broke after the first Shabbat – it is good to make another, for that which the remnants of an eruv are valid, is specifically when there remains at least one whole loaf. (ibid. in the name of R.M.M.) And this too is explained in the poskim to the contrary, that even a slice is valid. (ibid. and Beit Yosef) And there is also one who says that this is specifically when there is also shitufi mevo'ot, for then the remnants of the eruvei chatzerot are valid even in any amount. But when there is no shitufi mevo'ot – the remnants of the eruv are of no use at all. (Magen Avraham ibid.) For this is implied by the language of the Mishnah there which says: that the remnants of an eruv may be any amount, because they only said to make an eruv in courtyards after they have joined in the alleyway so as not to cause the children to forget, and therefore they were lenient regarding the remnants of the eruv, but without this – no. But if so, it is a great wonder regarding the Tur and the Shulchan Aruch, who wrote this law plainly regarding eruvei chatzerot. And our teacher Yehonatan wrote this explicitly, that a courtyard that is without an alleyway – the law of the remnant of an eruv does not apply to it, see there. And in the Rambam I did not find this law of the remnants of an eruv at all, for the truth is that he rejected it from the halacha, as he wrote in the Commentary on the Mishnah, that the halacha is not so, and so wrote the Bartenura. (For he holds that the first Tanna disagrees with Rabbi Yose as the Tosafot Yom Tov wrote, and the Tur and the Shulchan Aruch hold that Rabbi Yose does not disagree with the first Tanna, and they hold that this "and they only said to make an eruv in courtyards etc." – is a matter unto itself, and they are not the words of Rabbi Yose, and so it appears in the Rambam chapter 5 halacha 13 see there. And this is certainly a wonder, that the Beit Yosef would not bring the opinion of the Rambam at all, and study this well).
ובשם מהרי"ל כתבו, דאם נשבר העירוב, אפילו קודם שבת ראשונה – שרי, כיון דבשעת הנחה היה שלם, (מג"א סק"ג) ולא משמע כן מהפוסקים. מיהו זהו וודאי, דאם רק היה שלם בהכנסת שבת – תו לא חיישינן כשישבר בשבת. ויש מי שכתב להיפך, דאפילו אם נשבר אחר שבת ראשונה – טוב לעשות אחר, דהא דשירי עירוב כשר, היינו כשנשאר על כל פנים פת אחד שלם. (שם בשם רמ"מ) וגם זה מבואר בפוסקים להיפך, דאפילו פרוסה כשר. (שם וב"י)וגם יש מי שאומר דדוקא כשיש שיתופי מבואות גם כן, דאז כשר בשירי עירובי חצרות אפילו כל שהוא. אבל כשאין שיתופי מבואות – לא מהני שירי עירוב כלל. (מג"א שם) דהכי משמע לשון המשנה שם שאומרת: דשירי עירוב כל שהוא, מפני שלא אמרו לערב בחצרות אחר שנשתתפו במבוי אלא כדי שלא לשכח את התינוקות, ולכן הקילו בשירי עירוב, אבל בלאו הכי – לא. אבל אם כן תימה רבה על הטור והש"ע, שכתבו סתם דין זה בעירובי חצרות. ורבינו יהונתן כתב כן בפירוש, דחצר שהוא בלא מבוי – אין בו דין דשיור עירוב, ע"ש. וברמב"ם לא מצאתי כלל דין זה דשיורי עירוב, דהאמת דהוא דחאה מהלכה, כמ"ש בפירוש המשנה, דאין הלכה כן, וכן כתב הרע"ב. (דסבירא ליה דת"ק פליג על ר"י כמ"ש התוי"ט, והטור והש"ע סוברים דר"י אינו חולק על הת"ק, וסבירא ליה דהך ולא אמרו לערב בחצרות וכו' – הוא מילתה באפי נפשיה, ולאו דברי ר' יוסי הם, וכ"מ ברמב"ם פרק ה' הלכה י"ג ע"ש. וזה ודאי תימה, שהב"י לא יביא דעת הרמב"ם כלל ודו"ק).