Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Php53 #15

Merged
merged 3 commits into from
Jan 16, 2015
Merged

Php53 #15

merged 3 commits into from
Jan 16, 2015

Conversation

TomHAnderson
Copy link
Contributor

Per #14 this gives backwards compatibility to PHP 5.3.

Two commits here, the second one I need your eye for. PHP 5.3 does not support ReflectionInstance::newInstanceWithoutConstructor. 5.3 unit tests pass with my change but I don't know all the consequences of this change. Could we do the same thing with https://github.com/Ocramius/Instantiator ?

@veewee
Copy link
Contributor

veewee commented Jan 15, 2015

I would definitly go for doctrine/instantiator instead of using newInstance. Entities can have constructor parameters, so this code will fail on entities with constructor parameters.

@TomHAnderson
Copy link
Contributor Author

I think this PR is done.

@veewee veewee merged commit 1036ca4 into phpro:master Jan 16, 2015
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