And know, that the Rambam in chapter 6 of Yom Tov, law 15, wrote: That nowadays, since we are experts in the fixing of the month, and the first day of Yom Tov is a certain Yom Tov, and this that we observe a second day of Yom Tov is merely a custom, for they sent from there "be careful with the custom of your fathers," as is explained in the Gemara (Beitzah 4b) — one may not set an eruv with a condition, for how can he say "if today is a weekday etc.," when we know that today is holy. And the Ra'avad, the Rosh, and the Ran disagreed with him, for even in the time of the Gemara they were experts in the fixing of the month, and nevertheless they commanded to place it with a condition, and also the Rif brought this as the halacha. And on the contrary, according to his words, why should we not place the eruv on the second day of Yom Tov, since we know it is a weekday. Rather, perforce, since we were commanded to conduct it as a Yom Tov — it is forbidden to show that it is a weekday, and if so, the original enactment automatically remains in its place, and in the Shulchan Aruch they did not bring his words at all.
ודע, דהרמב"ם בפרק ו' מיו"ט דין ט"ו כתב: דהאידנא דבקיאין בקביעא דירחא, ויום טוב ראשון הוי יום טוב ודאי, וזה שאנו עושין יום טוב שני אינו אלא מנהג בעלמא, ששלחו מתם הזהרו במנהג אבותיכם, כמבואר בגמרא (ביצה ד':) - אין מערבין על תנאי, ואיך יאמר 'אם היום חול וכו', והרי ידענו שהיום קדש. וחלקו עליו הראב"ד והרא"ש והר"ן, שהרי גם בזמן הגמרא היו בקיאין בקביעא דירחא, ומכל מקום צוו להניח על תנאי, וגם הרי"ף הביא זה להלכה. ואדרבא, לדבריו למה לא נניח העירוב ביום טוב שני, כיון שידענו שהוא חול. אלא בעל כורחו, כיון שנצטוינו להנהיג בו יום טוב - אסור להראות שהוא חול, ואם כן ממילא נשארה תקנה ראשונה על מקומה, ובש"ע לא הביאו כלל דבריו.