Skip to content

PHP Preload Support #8

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

Merged
merged 5 commits into from
Mar 18, 2021
Merged

Conversation

natewiebe13
Copy link
Collaborator

Goal: Allow using Icons::setAttributes() with PHP Preloading enabled.

Using a namespaced constant in a function call within a class is not fully supported by php with preloading enabled and is likely to stop working in php 8 as well. Setting the default attributes using the constant on the property in the class definition is likely to remain an option.

Reading the documentation, it also seemed like using Icons::setAttributes() multiple times would continue to modify the property on the class, instead of re-merging with the constant.

The changes here solves both of these issues.

@Pixelrobin
Copy link
Owner

Sorry this is so late but thanks for this contributions!

@Pixelrobin Pixelrobin merged commit 84d9dd7 into Pixelrobin:master Mar 18, 2021
@natewiebe13 natewiebe13 deleted the php-preload-support branch March 18, 2021 13:24
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.

2 participants