You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am encountering a deprecation warning when using thedevdojo/themes with PHP 8.3. The warning is related to the creation of dynamic properties, which is deprecated in PHP 8.2 and later versions.
Error Message
The exact error message I am receiving is:
Deprecated: Creation of dynamic property DevDojo\Themes\ThemesServiceProvider::$themes_folder is deprecated in /var/www/html/vendor/devdojo/themes/src/ThemesServiceProvider.php on line 84
Steps to Reproduce
Install thedevdojo/themes on a Laravel project.
Upgrade PHP to version 8.3.
Run the application or execute a command that loads the ThemesServiceProvider.
The deprecation warning is displayed.
Expected Behavior
The package should not use dynamic properties and should be compatible with PHP 8.3 without triggering deprecation warnings.
Possible Solution
As PHP 8.2 deprecates the creation of dynamic properties, it might be necessary to update ThemesServiceProvider.php to define properties explicitly or refactor the code to avoid dynamic property creation. More information about this deprecation can be found here: PHP 8.2 Deprecation Notice.
Environment
Laravel Version: 10.38
PHP Version: 8.3
thedevdojo/themes Version: 0.0.7
I am looking forward to any updates or guidance on how to address this issue. Thank you!
The text was updated successfully, but these errors were encountered:
Description
I am encountering a deprecation warning when using
thedevdojo/themes
with PHP 8.3. The warning is related to the creation of dynamic properties, which is deprecated in PHP 8.2 and later versions.Error Message
The exact error message I am receiving is:
Deprecated: Creation of dynamic property DevDojo\Themes\ThemesServiceProvider::$themes_folder is deprecated in /var/www/html/vendor/devdojo/themes/src/ThemesServiceProvider.php on line 84
Steps to Reproduce
thedevdojo/themes
on a Laravel project.Expected Behavior
The package should not use dynamic properties and should be compatible with PHP 8.3 without triggering deprecation warnings.
Possible Solution
As PHP 8.2 deprecates the creation of dynamic properties, it might be necessary to update
ThemesServiceProvider.php
to define properties explicitly or refactor the code to avoid dynamic property creation. More information about this deprecation can be found here: PHP 8.2 Deprecation Notice.Environment
thedevdojo/themes
Version: 0.0.7I am looking forward to any updates or guidance on how to address this issue. Thank you!
The text was updated successfully, but these errors were encountered: