php-schema2class icon indicating copy to clipboard operation
php-schema2class copied to clipboard

bin script unusable on windows

Open uuf6429 opened this issue 2 years ago • 0 comments

Composer typically ensures compatibility between operating systems - what the plugin vendor needs to do is to provide a PHP-based bin script, not bash or anything else.

Currently, the bin script (as referenced from composer.json) is wrong - composer doesn't consider it as PHP and ends up generating the wrong type of proxy script.

The fix, in short:

  1. cmd/s2c should be removed
  2. cmd/s2c.php should be renamed to cmd/s2c and optionally made executable with chmod +x

Here's an example of how phpunit does it: the script, the composer reference

uuf6429 avatar Jan 21 '23 22:01 uuf6429