You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing method ajustments after « Doctrine\Common\Collections\Order » enum deprecation #526
Since this commit doctrine/collections@7f964ae the deprecation of Order enum encourage usage of native php 8.6 (not released at this time) SortDirection enum.
But methods that uses ordering are not updated regarding the usage of that enum:
So phpstan triggers deprecations about a feature that is not released yet and other methods are not ready for that new feature.
I must ignore those errors in our Quality stack for the moment and replace usages of Order enum with string representations (it sounds like a little regression).
Since this commit doctrine/collections@7f964ae the deprecation of Order enum encourage usage of native php 8.6 (not released at this time) SortDirection enum.
that enum is from PHP 8.4+, not the unreleased PHP 8.6
Activity
PapsOu commentedon Sep 18, 2026
Ok, related to this open PR : doctrine/orm#12613
stof commentedon Sep 18, 2026
that enum is from PHP 8.4+, not the unreleased PHP 8.6
PapsOu commentedon Sep 18, 2026
@stof you mean the polyfill enum ? I see here (https://php.watch/versions/8.6/SortDirection) that the real native enum will be released with php 8.6.
stof commentedon Sep 21, 2026
ah sorry, I messed up things