Closed (fixed)
Project:
Drupal core
Version:
9.1.x-dev
Component:
base system
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
30 Sep 2020 at 07:18 UTC
Updated:
14 Oct 2020 at 12:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
alexpottComment #3
gábor hojtsyDo we know why did we pass these by reference in the first place?
Comment #4
andypostIt looks like micro-optimization all this places using arrays to iterate but iterator is object which always passed by reference in PHP.
Maybe it was written before core started to use objects instead of arrays
I just wondered why sniffers/linters can't catch this yet
Comment #5
andypostComment #6
alexpottI think this is a copy and paste error from the original error. There's no optimisation going on. And the reference has no effect.
Comment #7
hussainwebThis is very similar to #3170648: CKEditorPluginManager::getEnabledButtons throws warnings on PHP 8.0.0 beta3 and as shown in the eval there, it is a definite behaviour change in PHP 8.
Comment #9
catchCommitted 0c707fd and pushed to 9.1.x. Thanks!