Closed prudloff-insite closed 3 years ago
Strange .. it works here. That function should be inside symfony's polyfills, which is installed in the phar. Can you give me some additional information about your system? Maybe a PHP version and a composer file of your project?
composer show
...
symfony/polyfill-php80 v1.20.0 Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions
...
I am running PHP 7.3.23.
The composer.json
is probably irrelevant here because it is running on a CI environment where everything is installed with phive
and composer install
is never called.
If I run strings tools/grumphp|grep "function get_debug_type"
on the PHAR, I can indeed see the function is here:
function get_debug_type($value) : string
public static function get_debug_type($value) : string
It works on my end because I had the polyfills inside my local project as well. If I put it in a project without vendors, it crashes.
Will have to play around with it a bit more to find the root cause.
But I am ussuming that box is able to prefix the symfony polyfills, but is not able to transform their usage in the code, since those are located in PHP's root namespace.
Might need to whitelist symfony/polyfills-*
from being prefixed.
@prudloff-insite : I've added a fix to the shim project. Feel free to test it out.
The 1.1.0 PHAR crashes when calling
run
. I don't have this issue with the 1.0.0 PHAR or with 1.1.0 installed locally by Composer.My configuration
Note that I don't have the issue if I only keep this part of the config file:
Steps to reproduce:
Result: