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

Remove deprecated warning for strpos with non-string needles #588

Closed

Conversation

tdoedtmann
Copy link

With PHP 7.3, the second parameter of strpos is always interpreted
as a string.
So the specification of -5 as second parameter, as in
ConfigurationFile::locateConfigFileWithDistSupport, deprecated.
At this point substr would be more obvious anyway and will be
replaced with this function.

Q A
Branch master
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? yes
Documented? /
Fixed tickets /

With PHP 7.3, the second parameter of `strpos` is always interpreted
as a string.
So the specification of -5 as second parameter, as in
`ConfigurationFile::locateConfigFileWithDistSupport`, deprecated.
At this point `substr` would be more obvious anyway and will be
replaced with this function.
@veewee
Copy link
Contributor

veewee commented Jan 11, 2019

Fixed in #585

@veewee veewee closed this Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants