- Issue created by @nicxvan
- @nicxvan opened merge request.
- πΊπΈUnited States nicxvan
@markaspot, I can't reproduce this in all environments, it's happening on php 8.1.15.
That null coalescing operator will have the same issue. The deprecation is that strstr doesn't support an empty string in the first argument, so whether it's a ternary or null coalescing that first argument being empty will throw a deprecation warning.
You either have to fix it the way I did or wrap the whole clause in an if else and I think since it returns checking to see if it's null is cleaner than a nested if else.
-
markaspot β
committed af6df704 on 3.0.x authored by
nicxvan β
Issue #3349163: Deprecated use of strstr
-
markaspot β
committed af6df704 on 3.0.x authored by
nicxvan β
- Status changed to Fixed
over 1 year ago 5:33am 22 March 2023 - Status changed to Needs work
over 1 year ago 11:21am 22 March 2023 - π©πͺGermany markaspot
This change breaks my authentication. Sorry for making this change without thorough testing. I will reopen this issue with an updated status and create a new release that rolls back the change. I am sorry for any inconvenience this may have caused.
Would you be willing to use the 3.0.2 release and possibly assist with testing it? It seems like this module could use additional support.
-
markaspot β
committed 17bc89af on 3.0.x
Roll back issue #3349163
-
markaspot β
committed 17bc89af on 3.0.x
-
markaspot β
committed c4fc988c on 3.0.x
Issue #3349163 by nicxvan, markaspot: Deprecated use of strstr Switch...
-
markaspot β
committed c4fc988c on 3.0.x
- Status changed to Needs review
over 1 year ago 4:18pm 22 March 2023 - π©πͺGermany markaspot
Could you please test the latest dev-commit again? I was able to reproduce the deprecation warning you mentioned without the null coalescing operator, but adding it fixed the issue for me using PHP 8.1.15. If you could confirm that the solution works for you, I would be happy to create a new release as soon as possible.
- Status changed to RTBC
over 1 year ago 5:33pm 24 March 2023 - πΊπΈUnited States nicxvan
I'm happy to test, after removing my patch and switching to dev I no longer get a deprecation notice!
Sorry for that issue with authentication, I had thought my patch was functionally similar.
- Status changed to Fixed
7 months ago 7:22am 24 May 2024 - π©πͺGermany Anybody Porta Westfalica
Markin this fixed as it was merged into 3.0.x Any further steps needed @markaspot & @nicxvan?
Automatically closed - issue fixed for 2 weeks with no activity.