Skip to content
This repository was archived by the owner on Jul 7, 2025. It is now read-only.

PHP Preload Support #8

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants