Skip to content
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

Fixed deprecation warning when parsing parameters in ShellDispatcher.php #49

Merged
merged 1 commit into from
Sep 18, 2023

Conversation

daris
Copy link
Contributor

@daris daris commented Sep 18, 2023

PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in lib/Cake/Console/ShellDispatcher.php on line 295

It broke some behat tests for my project because PHP issued warning and then session has not been able to start correctly due to "Session cannot be started after headers have already been sent" error

PHP Deprecated:  strpos(): Passing null to parameter kamilwylegala#1 ($haystack) of type string is deprecated in lib/Cake/Console/ShellDispatcher.php on line 295

It broke some behat tests for my project because PHP issued warning and then session has not been able to start correctly due to "Session cannot be started after headers have already been sent" error
@kamilwylegala
Copy link
Owner

Hey @daris Thank you for your contribution. Change looks good. Merging! 🔥

@kamilwylegala kamilwylegala merged commit 5dbc22e into kamilwylegala:master Sep 18, 2023
5 checks passed
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