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

Interface property method is protected #431

Open
sallyx opened this issue Nov 22, 2019 · 0 comments
Open

Interface property method is protected #431

sallyx opened this issue Nov 22, 2019 · 0 comments

Comments

@sallyx
Copy link

sallyx commented Nov 22, 2019

I cant create constant on interface, like:

Php::Interface test('Test');
test.property("X", 0, Php::Const);

Got error: error: ‘void Php::ClassBase::property(const char*, int32_t, int)’ is protected within this context

How to fix:
Add method(s) void property(const char *name, int32_t value, int flags = Php::Public) { ClassBase::property(name, value, flags); } into Php::Interface class

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

No branches or pull requests

1 participant