Problem/Motivation
Using php 8.0/8.1, getting:
Deprecated function: stristr(): Passing null to parameter #1 ($haystack) of type string is deprecated in Drupal\amp\Service\AMPService->isDevPage() (line 173 of /var/www/html/web/modules/contrib/amp/src/Service/AMPService.php)
Proposed resolution
Check parameter #1 if exists.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | amp_fix_deprecated_warnings.patch | 563 bytes | igork96 |
Issue fork amp-3263406
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
szato commentedComment #4
szato commentedComment #5
apolitsin commentedits work for me, thanks
Comment #6
igork96 commentedComment #7
platinum1 commentedI am curious why a patch like this does not get merged by the maintainers. Is AMP development dead?
Comment #8
uditrawat#6 Patch working well with 8.x-3.x-dev
Comment #9
avpadernoComment #10
avpaderno