Closed zeleznypa closed 2 years ago
The code is not working for me, but for another reason, that I'm not able to detect why.
Generated $code
in this part at the end does not contain final
, but the PhpUnit still fail on error PHPUnit\Framework\MockObject\ClassIsFinalException: Class "FinalClass" is declared "final" and cannot be doubled
The environment is
PHP 8.1.9 (cli) (built: Aug 4 2022 21:09:01) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.9, Copyright (c) Zend Technologies
with Zend OPcache v8.1.9, Copyright (c), by Zend Technologies
with Xdebug v3.1.2, Copyright (c) 2002-2021, by Derick Rethans
For some reason the
dg/bypass-finals
try to findfinal
in$token[0]
but on my computer thefinal
is in$token[1]
And because of that, the
dg/bypass-finals
not working