foxy icon indicating copy to clipboard operation
foxy copied to clipboard

DRAFT: Making it compatible with composer ^2.5 as php is throwing an error.

Open fr3nch13 opened this issue 1 year ago • 3 comments

The error:

PHP Fatal error:  Declaration of Foxy\Json\JsonFile::encode($data, $options = 448) must be compatible with Composer\Json\JsonFile::encode($data, int $options = 448, string $indent = self::INDENT_DEFAULT): string in vendor/foxy/foxy/Json/JsonFile.php on line 98

This will also bump the minimum for php to ^7.3, but come on. just let php 5.x die!

Maybe this should be a PR to a new branch called 2.0 or something?

I'll be adding to this PR, so I prefixed it with DRAFT.

fr3nch13 avatar Sep 30 '23 19:09 fr3nch13

Same problem here. Thank you for the update. Hopefully, it will be accepted soon! :)

mambax7 avatar Oct 21 '23 03:10 mambax7

Is there an idea when this will be merged?

joester89 avatar Jan 09 '24 10:01 joester89

Thank you for your feedbacks.

Unfortunately, this Pull Request goes way too far beyond the scope of the topic, namely, making it compatible with Composer 2.5 and above. I'm not going to go into details, but as it stands, all of the proposed changes mainly concern the style of code and CI using Github Actions whereas the project is tested with Travis CI. In addition, this PR does not respect the project's PHP CS Fixer configurations.

In the event that this PR is simplified to what it describes or another PR does this, I would voluntarily merge it.

francoispluchino avatar Jan 10 '24 09:01 francoispluchino