Closed hco closed 3 years ago
PS: This defect is visible by running the testsuite
Hey @hco,
I'm taking this issue since it's not related to this PHP client but related to Jane which is used here to generated the Slack client :wink: I've opened a PR to fix PHP 8 support: https://github.com/janephp/janephp/pull/483 and will try to tag a new version soon :ok_hand:
Thank you!
From what I understand, this is currently incompatible with PHP 8. This should probably be noted in the composer.json rather soonish right?
Example error:
From what I understand, the problem is that in one place it says
string $contentType = null
whereas in the other place it says?string $contentType
.I looked a minute at how the code generation works but realized that I would need to dig into this in more detail in order to fix it, and probably it's an easy fix for you.
I will create a PR for an adjustment I made in the generated code. No hard feelings if you just decline it (because, who edits generated code, right?. But this way I can at least offer you a bit more than just a bug report.
I wish you a Merry Christmas! 🎄