Problem/Motivation
When running head of the latest 8.x-3.x dev release of charts, getting a php 8.0 related issue when running php 8.0
Deprecated: Required parameter $pluginType follows optional parameter $defaults in charts/src/Settings/ChartsBaseSettingsForm.php on line 52
Steps to reproduce
install php 8.0, this module, start using it. You may see the error.
Proposed resolution
working on it
Remaining tasks
TBD
User interface changes
N/A
API changes
TBD
Data model changes
N/A
| Comment | File | Size | Author |
|---|---|---|---|
| #20 | 3247344-php-8-20.patch | 1.56 KB | andileco |
| #13 | charts3x-3247344-14.patch | 20.98 KB | joseph.olstad |
| #13 | interdiff-12_to_14-3247344-14.txt | 10.48 KB | joseph.olstad |
Comments
Comment #2
joseph.olstadsee patch
Comment #3
joseph.olstadTested with charts 3.x dev and this patch, no more errors running php 8.0
Comment #4
joseph.olstadtested my own patch, it's ready
Comment #5
joseph.olstadnot quite ready yet
Comment #6
joseph.olstadtry this one
Comment #8
joseph.olstadhere's a better patch
and interdiff
code sniffer fixes also
Comment #10
joseph.olstadComment #11
joseph.olstadI just sponsored this project 50 USD$
Hope this patch makes it into a tagged 3.x release soon!
Thanks
Comment #12
joseph.olstadthis "might" help the php 8.0 D9 tests, not sure.
Comment #13
joseph.olstadYet another
Comment #14
joseph.olstadComment #15
joseph.olstadOk patch 14 (in comment 13) looks like it's the one.
The only thing I am curious of is if we change this in the tests:
To this:
and see if the tests still pass.
Comment #16
andileco commentedThank you, @joseph.olstad! Getting a donation and a patch is a rare treat for a maintainer! I will definitely work to incorporate this ASAP.
Comment #17
joseph.olstadI also fixed some code sniffer style changes as you'll maybe notice in the patch.
Comment #19
andileco commentedCommitted for 8.x-3.x. Changing to 5.0.x.
Comment #20
andileco commentedAdding a patch for 5.0.x.
Comment #22
andileco commentedComment #23
joseph.olstadadded some child issues for followup
Comment #24
joseph.olstad*** EDIT ***
No rush, but would be nice to have a tagged release
*** EDIT ***
Comment #25
joseph.olstadPlease tag and release when you have a chance! Thanks :)
Comment #26
andileco commentedI had been hoping to squeeze in another couple fixes, but went ahead and 3.3 is available now. Please do investigate 5.0.x too!
Comment #27
joseph.olstad@andileco, thanks so much for this, I have one more favor to ask you, please add php 8.0 to the test default to replace php 7.2, we should only have to test php 7.4, php 8.0 and php 8.1 because in a few days from now PHP 7.3 will be "End of Life"
https://www.drupal.org/node/232629/qa
Drupal 8 will also be EOL soon therefore all tests should cover Drupal 9.2.x and 9.3.x, php 7.4 and php 8.0 (and 8.1)