phar-stream-wrapper icon indicating copy to clipboard operation
phar-stream-wrapper copied to clipboard

Deprecate unused constant in PharInvocationResolver

Open ohader opened this issue 6 years ago • 0 comments

Constant ASSERT_INTERNAL_INVOCATION is not used anymore since https://github.com/TYPO3/phar-stream-wrapper/commit/eb6607fb147f607e0e0cca1d7e3896814f7c5616#diff-0dd07cb25bec3476d9fc1d8a3db389b3L59

Asserting internal alias invocation just did not work out in a simple example like this

require('/path/bundle.phar');
// which internally does e.g. include('phar://bndl/vendor/autoload.php')
// given that Phar stub loads `autoload.php` using an internal alias
$object = new BundledClass();

ohader avatar May 13 '19 07:05 ohader