Skip to content

Fix php warning calling exit() with null#3135

Merged
brianhogg merged 3 commits intodevfrom
fix/php-warning-exit-with-null
Apr 28, 2026
Merged

Fix php warning calling exit() with null#3135
brianhogg merged 3 commits intodevfrom
fix/php-warning-exit-with-null

Conversation

@brianhogg
Copy link
Copy Markdown
Contributor

Description

Avoids warning when llms_exit() is called with no params. For example:

[28-Apr-2026 14:06:02 UTC] PHP Deprecated: exit(): Passing null to parameter #1 ($status) of type string|int is deprecated in /var/www/html/site/public_html/wp-content/plugins/lifterlms/includes/functions/llms-functions-wrappers.php on line 61

How has this been tested?

Manually

Checklist:

  • This PR requires and contains at least one changelog file.
  • My code has been tested.
  • My code passes all existing automated tests.
  • My code follows the LifterLMS Coding & Documentation Standards.

@ideadude ideadude moved this to Awaiting Review in Development Apr 28, 2026
@brianhogg brianhogg merged commit aa72e19 into dev Apr 28, 2026
17 checks passed
@brianhogg brianhogg deleted the fix/php-warning-exit-with-null branch April 28, 2026 14:43
@github-project-automation github-project-automation Bot moved this from Awaiting Review to Done in Development Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants