Skip to content
This repository was archived by the owner on Apr 27, 2026. It is now read-only.

Fix error on pushing a new branch - #1584

Merged
akalipetis merged 1 commit into
mainfrom
cli-74-error-on-upsun-push-after-local-branch-creation
Nov 18, 2025
Merged

akalipetis merged 1 commit into
mainfrom
cli-74-error-on-upsun-push-after-local-branch-creation

Conversation

@pjcdawkins

Copy link
Copy Markdown
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

Copilot AI left a comment

Copy link
Copy Markdown

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.

@akalipetis akalipetis left a comment

Copy link
Copy Markdown
Contributor

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants