- Issue created by @derekw
- Merge request !63Issue #3381131: Creation of dynamic property Drupal\smart_date\Plugin\views\filter\Date::$dateFormatter is deprecated β (Merged) created by derekw
- πΊπΈUnited States glynster
Fixes the issue immediately! Great job hoping this can be merged swiftly!!
-
mandclu β
committed 15d90924 on 4.0.x authored by
derekw β
Issue #3381131: Creation of dynamic property Drupal\smart_date\Plugin\...
-
mandclu β
committed 15d90924 on 4.0.x authored by
derekw β
- Status changed to Fixed
about 1 year ago 11:42am 23 August 2023 - π¨π¦Canada mandclu
I just tested this on a Drupal 10.1.2 site running Smart Date 4.0.3 and wasn't seeing any warnings.
That said, it makes sense to declare the property, so merging this in.
-
mandclu β
committed 15d90924 on 4.1.x authored by
derekw β
Issue #3381131: Creation of dynamic property Drupal\smart_date\Plugin\...
-
mandclu β
committed 15d90924 on 4.1.x authored by
derekw β
Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
10 months ago 2:43pm 16 January 2024 - π³π΄Norway vegardjo
I believe this is php 8.2 related, and not Drupal version related, see: https://php.watch/versions/8.2/dynamic-properties-deprecated - also there is no release on the 4.0 branch that has this fix, so people on 4.0.3 with php 8.2 will see it :)
- πΊπΈUnited States rraney
What is the fix? I am using 4.0.3. Should I update to 4.1.x? I don't see a patch.
- π³π΄Norway vegardjo
You can try this as the patch file, as it also applies on 4.0.3, but please test beforehand :)
https://git.drupalcode.org/project/smart_date/-/commit/15d9092432fecccde...
- πΊπΈUnited States rraney
Thanks! It appears it was included in an early version of 4.1.x-dev so I just installed that. It fixed the issue but I guess this is the development version? I appreciate the patch in case I need to revert.
- πΊπΈUnited States RoloDMonkey
If you are running 4.0.x with PHP 8.2 you may still see this error. If so, you can use this link to patch it.
https://git.drupalcode.org/project/smart_date/-/merge_requests/63.patch - π©πͺGermany Anybody Porta Westfalica
Would be great to have a 4.0.x release with this fix! For our case we upgraded to 4.1.0-rc5 now.