antecedent / patchwork

Method redefinition (monkey-patching) functionality for PHP.
https://antecedent.github.io/patchwork/
MIT License
444 stars 40 forks source link

Call to a member function load() on null #72

Closed f-liva closed 7 years ago

f-liva commented 7 years ago

Hello,

I imported Patchwork in this way

require_once __DIR__ . '/vendor/antecedent/patchwork/Patchwork.php';

And I get the error Call to a member function load() on null in vendor\antecedent\patchwork\src\CallRerouting.php:529

What is wrong?

This is happen when I move from 2.0.9 to 2.1.0

antecedent commented 7 years ago

Please try version 2.1.5. If the problem persists, I'll probably need some more context, like a complete stack trace.

f-liva commented 7 years ago

It works wonderfully! ✨

You're doing an excellent job, my compliments really!