l-you
l-you
Maybe it's time to support php >=8.1 only? Symfony 6.1 is out, and it has no support for php 8.0 .
Features available in php 8.1 could greatly increase code readability and reduce potential bugs. [ Enums, readonly properties, `array_is_list` and pure intersection types](https://stitcher.io/blog/new-in-php-81#pure-intersection-types-rfc). According to [usage statistics](https://stitcher.io/blog/php-version-stats-july-2022) php 8.1 has...
> @bladl Enums are already implemented and don't require that we drop 8.0 support. I tell about internal use of enums. For example replacing constants below with enums: It would...
> It'd be great to get a PR put together to begin cleaning up for the 8.0 min support if someone wants to take the initiative. Will this changes be...
> This would be a minor update, yes - 5.1 for instance. Shouldn't it be a version 6.1? Current version is 6.0 as I guess. But there is no version...
Can annotations like #[Field], #[Type], etc. be abandoned in favor of attributes from now?
> Luckily Rector has something for refactoring annotations to attributes. Maybe we could provide instructions on how to automate that refactor? Maybe Im wrong, but documentation already has section about...
Can I replace `Webmozart\Assert\Assert` with native `assert()` for performance and better IDE code suggestion reason?
> Does that Assert lib throw exceptions in a non dev env? If the result is the same, I don’t see why not. However, I haven’t looked into it’s intended...
There are many unnecessary assertions that can be replaced in favor of methods type-safety. So we could remove entire webmozart/assert lib. PR is on the way!