dg / bypass-finals

Removes `final` and `readonly` keywords from source code on-the-fly and allows mocking of final methods and classes. It can be used together with any test tool such as PHPUnit or Mockery.
Other
487 stars 30 forks source link

Doesn't work with amphp/process #40

Closed ostrolucky closed 6 months ago

ostrolucky commented 1 year ago

See https://github.com/amphp/process/issues/67

Produces Errno: 2; fseek(): Stream does not support seeking

JanTvrdik commented 1 year ago

Really, not even callstack?

ostrolucky commented 1 year ago

Reproducer was given in linked story

dg commented 6 months ago

Closing due to lack of context

ostrolucky commented 6 months ago

I am happy to provide more context. What info specifically are you missing? amphp/process is a package used by various libraries, one of them eg. https://github.com/pact-foundation/pact-php/tree/9.1.1. If you enable dg/bypass-finals in your bootstrap.php, these tools do not work with mysterious errors like fseek() above.

dg commented 6 months ago

I would prefer a minimal code example, perhaps a repository that I can download and immediately see the error.