- Issue created by @besek
- First commit to issue fork.
- Assigned to Meeni_Dhobale
- 6b8f3eed committed on 8.x-1.x
Issue #3473311: Deprecated function: Creation of dynamic property
- 6b8f3eed committed on 8.x-1.x
- Issue was unassigned.
- Status changed to Fixed
about 1 month ago 11:00am 13 January 2025 - ๐ต๐ฑPoland besek
Hi @antonnavi
thanks for implementing the fix. I'm testing this on my site, and I still see this error:
After upgrading to 8.x-1.3 I still see the error, only in different line. it moved from line 125 to line 132, which seems to be the same line, juste moved a bit.In my IDE I see:
Undefined property '$valueOptions'.
in number of lines in this file.Could you please verify if this issue is really resolved?
- 565aff8a committed on 8.x-1.x
Issue #3473311: Deprecated function: Creation of dynamic property
- 565aff8a committed on 8.x-1.x
- ๐ฌ๐งUnited Kingdom joehuggans Harrogate, UK
joe huggans โ made their first commit to this issueโs fork.
- ๐ฌ๐งUnited Kingdom joehuggans Harrogate, UK
Declared property, please review when you get chance.
I was able to reproduce the following error using the given setup:
Drupal version: 10.3.2
PHP version: 8.3.14
Error:
Deprecated function: Creation of dynamic property Drupal\user_email_verification\Plugin\views\filter\EmailVerification::$value_value is deprecated in EmailVerification->init() (line 110 of EmailVerification.php).
The issue was caused by the use of a dynamic property, which is deprecated in PHP 8.2 and later. Applying the patch from MR 7 resolved the error by explicitly defining the missing property
$valueOptions
as a protected class property. Since this fixes the issue, I am updating the issue status to RTBC.