Error on saving amounts on edit Contribution Page
If you are on PHP 8.1+, you'll hit a hard error if you try to save a Contribution Page - Amounts tab with a Fixed Contribution Option (not a Price Set). There is a name collision here on $name, funnily enough.
The problem is that CRM_Contribute_Form_ContributionPage had a $name added recently in #26259, which is now loaded in the $defaults for CRM_Contribute_Form_ContributionPage and then into CRM_Contribute_Form_ContributionPage_Amount. It turns out that in CRM_Contribute_Form_ContributionPage_Amount $defaults['name'] was already in use here as an array for those fixed contribution price options.
The result is that $defaults['name'] already exists as a string when we try to add $defaults['name][0] for the first price option, giving the error (or a warning, depending on PHP version).
Maybe we could just change the Contribution Page $name to $pageName or something similar. @eileen, thoughts?