Skip to content

Fix: Prevent SDK from exiting in CLI environments#789

Merged
fajardoleo merged 1 commit intodevelopfrom
feature/daniele/composer/conflict-with-composer-cmd-scripts
Mar 4, 2025
Merged

Fix: Prevent SDK from exiting in CLI environments#789
fajardoleo merged 1 commit intodevelopfrom
feature/daniele/composer/conflict-with-composer-cmd-scripts

Conversation

@DanieleAlessandra
Copy link
Collaborator

Changed exit; to return; in start.php to prevent the Freemius SDK from terminating execution in CLI environments where ABSPATH is not defined. This resolves conflicts with tools like PHPCS, PHPStan, and PHPUnit while ensuring the SDK remains functional within WordPress.

Changed `exit;` to `return;` in `start.php` to prevent the Freemius SDK
from terminating execution in CLI environments where `ABSPATH` is not defined.
This resolves conflicts with tools like PHPCS, PHPStan, and PHPUnit
while ensuring the SDK remains functional within WordPress.
Copy link
Contributor

@fajardoleo fajardoleo left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@fajardoleo fajardoleo merged commit 4a8bb0c into develop Mar 4, 2025
5 checks passed
@fajardoleo fajardoleo deleted the feature/daniele/composer/conflict-with-composer-cmd-scripts branch March 4, 2025 13:47
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.

2 participants