Skip to content

Conversation

@pjcdawkins
Copy link
Collaborator

Fixes "Fatal error: Uncaught Error: Call to a member function operationAvailable() on bool"

Fixes "Fatal error: Uncaught Error: Call to a member function
operationAvailable() on bool"
@pjcdawkins pjcdawkins requested a review from Copilot November 18, 2025 08:22
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a fatal error that occurs when pushing to a new branch. The error was caused by attempting to call operationAvailable() on a boolean value when $targetEnvironment is false or null.

Key Changes:

  • Added a null/false check before accessing $targetEnvironment->operationAvailable()

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@akalipetis akalipetis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@akalipetis akalipetis merged commit 5b6497e into main Nov 18, 2025
4 of 5 checks passed
@akalipetis akalipetis deleted the cli-74-error-on-upsun-push-after-local-branch-creation branch November 18, 2025 09:13
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