Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LOPS-1990] Fix fatal error on payment methods. #2522

Merged
merged 2 commits into from
Jan 2, 2024
Merged

Conversation

kporras07
Copy link
Contributor

Before:

Getting error when running terminus payment-method:list:

Fatal error: Declaration of Pantheon\Terminus\Collections\PaymentMethods::get($id): ?Pantheon\Terminus\Models\TerminusModel must be compatible with Pantheon\Terminus\Collections\TerminusCollection::get($id): Pantheon\Terminus\Models\TerminusModel in phar:///opt/homebrew/Cellar/terminus/3.3.0/bin/terminus/src/Collections/PaymentMethods.php on line 39

The second commit addresses the following message:

terminus payment-method:list
 [warning] Model data missing for 0
 [warning] There are no payment methods attached to this account.
 ------- ----
  Label   ID
 ------- ----

@kporras07 kporras07 requested a review from a team as a code owner December 21, 2023 13:02
@greg-1-anderson greg-1-anderson changed the title Fix fatal error on payment methods. [LOPS-1775] Fix fatal error on payment methods. Dec 22, 2023
@greg-1-anderson greg-1-anderson changed the title [LOPS-1775] Fix fatal error on payment methods. Fix fatal error on payment methods. Dec 22, 2023
@kporras07 kporras07 changed the title Fix fatal error on payment methods. [LOPS-1990] Fix fatal error on payment methods. Dec 22, 2023
@kporras07 kporras07 merged commit 5ad57aa into 3.x Jan 2, 2024
8 checks passed
@kporras07 kporras07 deleted the payment-methods branch January 2, 2024 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants