-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Debug] Actively discourage using Serializable by triggering a deprecation notice #30304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
unconditionally = for all PHP versions and not only for the buggy 7.3 right ? |
All PHP versions yes. |
The RFC has been accepted. I will implement this feature today. #eufossa |
This was referenced Apr 7, 2019
fabpot
added a commit
to twigphp/Twig
that referenced
this issue
Apr 7, 2019
This PR was merged into the 1.x branch. Discussion ---------- Prepare for the new serialization mechanism #eufossa related to symfony/symfony#30965 So we are future proof and it will prevent deprecations for symfony/symfony#30304. Almost future proof actually because the void return type cannot be added in 7.0. I guess we can see the minimum required PHP version here once 7.4 is out and see how we can handle compatibility 😕 Commits ------- 72d7abe Prepare for the new serialization mechanism
symfony-splitter
pushed a commit
to symfony/form
that referenced
this issue
Apr 8, 2019
This PR was merged into the 4.3-dev branch. Discussion ---------- Prepare for the new serialization mechanism | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - #eufossa Should I maybe split this component by component ? https://wiki.php.net/rfc/custom_object_serialization has been accepted. Best viewed in "split" mode. This work is kind of required for symfony/symfony#30304 so we don't trigger 30 deprecations from our own code base. Commits ------- d412e77a9c Prepare for the new serialization mechanism
symfony-splitter
pushed a commit
to symfony/routing
that referenced
this issue
Apr 8, 2019
This PR was merged into the 4.3-dev branch. Discussion ---------- Prepare for the new serialization mechanism | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - #eufossa Should I maybe split this component by component ? https://wiki.php.net/rfc/custom_object_serialization has been accepted. Best viewed in "split" mode. This work is kind of required for symfony/symfony#30304 so we don't trigger 30 deprecations from our own code base. Commits ------- d412e77a9c Prepare for the new serialization mechanism
fabpot
added a commit
that referenced
this issue
Apr 8, 2019
This PR was merged into the 4.3-dev branch. Discussion ---------- Prepare for the new serialization mechanism | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - #eufossa Should I maybe split this component by component ? https://wiki.php.net/rfc/custom_object_serialization has been accepted. Best viewed in "split" mode. This work is kind of required for #30304 so we don't trigger 30 deprecations from our own code base. Commits ------- d412e77 Prepare for the new serialization mechanism
symfony-splitter
pushed a commit
to symfony/validator
that referenced
this issue
Apr 8, 2019
This PR was merged into the 4.3-dev branch. Discussion ---------- Prepare for the new serialization mechanism | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - #eufossa Should I maybe split this component by component ? https://wiki.php.net/rfc/custom_object_serialization has been accepted. Best viewed in "split" mode. This work is kind of required for symfony/symfony#30304 so we don't trigger 30 deprecations from our own code base. Commits ------- d412e77a9c Prepare for the new serialization mechanism
Too much work :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When
DebugClassLoader
is registered, we could make it unconditionally trigger a deprecation notice when it loads a class that directlyimplements Serializable
.We should wait for https://wiki.php.net/rfc/custom_object_serialization to be resolved before.
The text was updated successfully, but these errors were encountered: