[Map] Make UX-Map compatible with PHP 8.1 or clarify PHP 8.3 requirement #2681
-
Hi Symfony team, First, thank you for your amazing work on the UX components! I'm interested in using ux-map in my project, but I noticed that it requires PHP 8.3. Unfortunately, my application needs to run on a server with PHP 8.1, so I'm trying to understand what makes PHP 8.3 mandatory. From what I’ve seen, the only feature requiring PHP 8.3 is the use of readonly classes. I tried removing the readonly keyword from the relevant classes in both ux-map and ux-leaflet-map, and everything still seems to work fine—the tests pass and the maps render correctly. Could you confirm if there's any other reason PHP 8.3 is required? Would you consider relaxing the PHP version constraint, or accepting a PR to make it compatible with earlier versions like PHP 8.1? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi, Well, that's true, I don't think PHP 8.3 is mandatory for UX Map and its Bridges, except for I would be in favor of:
|
Beta Was this translation helpful? Give feedback.
I've just merged #2695, it will be available in 2.25 :)