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

Implement ReflectionObject #16

Closed
asgrim opened this issue Jul 2, 2015 · 3 comments
Closed

Implement ReflectionObject #16

asgrim opened this issue Jul 2, 2015 · 3 comments
Assignees
Milestone

Comments

@asgrim
Copy link
Member

asgrim commented Jul 2, 2015

It's not supported currently because it requires an instance of an existing class, which means we can't currently implement...

@asgrim
Copy link
Member Author

asgrim commented Jul 2, 2015

See #7

@asgrim
Copy link
Member Author

asgrim commented Jul 19, 2015

We can use internal reflection API to fetch the classname. If it's set and valid, we can just reflect that class, doesn't matter if it's loaded, this is fairly easy to impl now.

@asgrim asgrim added this to the 1.0.0 milestone Jul 19, 2015
@asgrim
Copy link
Member Author

asgrim commented Jul 20, 2015

Note when implementing this, we would now need to be aware of runtime declared variables, e.g.:

<?php

$foo = new stdClass();
$foo->prop = 'bar';

$r = new ReflectionObject($foo);
$p = $r->getProperty('prop');
var_dump($p->isDefault()); // should be false

@asgrim asgrim removed the easypick label Jul 26, 2015
@asgrim asgrim mentioned this issue Jul 31, 2015
@asgrim asgrim self-assigned this Jul 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant