Bool passed to strpos() in modernizr_requirements()

Created on 18 July 2020, over 4 years ago

Deprecated function: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in modernizr_requirements() (line 33 of modernizr/modernizr.install).

At /admin/reports/status, when libraries is enabled but the Modernizr library has not yet been installed the hook_requirements() implementation calls strpos() with a boolean needle instead of a string.

Let's make sure the libraries path is a string before using it as such.

πŸ› Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jacob.embree

Live updates comments and jobs are added and updated live.
  • PHP 7.3

    The issue particularly affects sites running on PHP version 7.3.0 or later.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024