Skip to content

Fix type error caused by HttpApiListener:is_cron() with null $url #92

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

Open
wants to merge 1 commit into
base: 1.x
Choose a base branch
from

Conversation

cristianobaptista
Copy link

@cristianobaptista cristianobaptista commented Apr 15, 2025

If the $response argument passed to HttpApiListener:is_cron() is in fact an array and $url is null or something that results in parse_url() returning null, a TypeError will occur due to basename() only accepting strings.

What's Included in This Pull Request

  • The return value of parse_url() is casted to a string.

If the $response arg passed to HttpApiListener:is_cron() is in
fact an array and $url is null or something that results in
parse_url() to return null, a TypeError will occur due to
basename() only accepting strings
@cristianobaptista cristianobaptista changed the title Fix fatal error caused by HttpApiListener:is_cron() with null $url Fix type error caused by HttpApiListener:is_cron() with null $url Apr 15, 2025
@luislard luislard self-requested a review April 21, 2025 10:53
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