Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Taran2L created an issue. See original summary.

Taran2L’s picture

Taran2L’s picture

apaderno’s picture

Title: [PHP7.4] [D7] Trying to access array offset on value of type null in _drupal_build_css_path() » Trying to access array offset on value of type null in _drupal_build_css_path()
Issue tags: +PHP 7.4
apaderno’s picture

Issue summary: View changes
hash6’s picture

Assigned: Unassigned » hash6
izmeez’s picture

Patch in #6 applies and resolves warnings.

Steven Jones’s picture

Assigned: hash6 » Unassigned
Status: Needs review » Needs work
+++ b/includes/common.inc
@@ -3740,7 +3740,7 @@ function _drupal_build_css_path($matches, $base = NULL) {
+  $path = $_base . (isset($matches[1]) ? $matches[1]: '');

Minor nit-pick about this line is that I think according to the coding standards for operators we should have a space on either side of the : here:

$path = $_base . (isset($matches[1]) ? $matches[1] : '');

Otherwise the patch fixes the notice and preserves existing functionality, so once that's addressed this should be RTBC.

mcdruid’s picture

Status: Needs work » Reviewed & tested by the community
Issue tags: +Pending Drupal 7 commit

@Steven Jones is right about the missing space, but we can fix #6 on commit.

This function doesn't exist in D8 so there's no fix there to backport.

Fabianx’s picture

Assigned: Unassigned » mcdruid

Approved, let's get this in and fix the typo on commit.

  • mcdruid committed 460ff5d on 7.x
    Issue #3084953 by Taran2L, kiamlaluno: Trying to access array offset on...
mcdruid’s picture

Assigned: mcdruid » Unassigned
Status: Reviewed & tested by the community » Fixed
Issue tags: -Pending Drupal 7 commit

I fixed the whitespace on commit per #9.

Thanks everyone!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.