Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Deprecated Dynamic Property Creation in PHP 8.3 #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alfreddagenais
Copy link

Description

This PR addresses the issue of deprecated dynamic property creation in PHP 8.3, as reported in issue #9. The fix involves explicitly declaring the $themes_folder property in the ThemesServiceProvider class to comply with PHP 8.3's stricter property handling.

Changes

  • Added a private $themes_folder property declaration in ThemesServiceProvider.
  • Updated the boot method to use the newly declared property.

Impact

This change ensures that thedevdojo/themes is compatible with PHP 8.3 and prevents the "Deprecated: Creation of dynamic property" error from being triggered.

Testing

The changes have been tested in a local environment running PHP 8.3 to ensure that the deprecation warning is resolved and that the functionality of the ThemesServiceProvider remains unaffected.

References

  • Issue: #9 regarding deprecated dynamic property creation in PHP 8.3.

I look forward to any feedback or suggestions regarding this pull request. Thank you for considering this contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant