symbok-bundle icon indicating copy to clipboard operation
symbok-bundle copied to clipboard

PHP 8 support

Open carlobeltrame opened this issue 4 years ago • 9 comments

Does this bundle support PHP 8? I was able to install it and use the basic functionality using --ignore-platform-reqs, but it would be nice if the bundle could be specified to support PHP 8.

carlobeltrame avatar May 14 '21 23:05 carlobeltrame

Hi @carlobeltrame, unfortunately, PHP 8 isn't supported yet. I planned to do it but I don't have enough time at the moment. Any PR would be really appreciated!

mtarld avatar May 17 '21 07:05 mtarld

Do you have any pointers on which parts of the package do not support php 8? I was only using getter and setter so far, and those seemed to work alright.

carlobeltrame avatar May 17 '21 07:05 carlobeltrame

Actually, I think (but I haven't tested it yet) that everything should work as expected with PHP8. The thing is, if we wanna support PHP8, we should be able to support one of the great things provided by PHP8: attributes :wink: The rest won't need to change IMHO

WDYT?

mtarld avatar May 17 '21 13:05 mtarld

I tried updating the dev dependencies to allow versions that support PHP 8. Locally, I got the tests to work, but on GitHub Actions some of them fail because of autoloader internals which I don't know enough about: https://github.com/carlobeltrame/symbok-bundle/tree/php-8-support

Attributes would be nice of course, and from what I've seen they are not too hard to support if you already have a good system for reading annotations. But I'd do that in a second step, once there is a version that can be installed with PHP 8 at all.

carlobeltrame avatar May 17 '21 14:05 carlobeltrame

Indeed this is strange... I'll try to have a look ASAP

mtarld avatar May 19 '21 13:05 mtarld

Any news here? :)

joerndyherrn avatar Mar 24 '22 10:03 joerndyherrn

Since we use php 8 in my project, I opted out of using symbok, and I did not personally pursue this any further.

carlobeltrame avatar Mar 24 '22 16:03 carlobeltrame

Since we use php 8 in my project, I opted out of using symbok, and I did not personally pursue this any further.

What do you mean? How does php 8 discredit symbok? I'm just wondering if missed anything.

xShazzy avatar May 25 '22 08:05 xShazzy

As the @mtarld wrote a year ago, symbok does not support php 8. The last commit to symbok was made 2 years ago, and the help from @mtarld never arrived until now. So I presume php 8 still is not supported, and thus my php 8 project cannot use symbok.

carlobeltrame avatar May 25 '22 10:05 carlobeltrame

Lombok php looks promising ...

nelsw avatar Dec 07 '22 03:12 nelsw

Indeed, thank you for the research, I didn't manage to find any time to work on that repository. And with PHP 8.1 and the emergence of public read-only properties, this bundle doesn't make any more sense to me.

Therefore I gonna archive it. Anyone can feel free to fork it and make it evolve and live (I'd be really happy if something like that happens :wink:)

mtarld avatar Dec 07 '22 08:12 mtarld