-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Deprecates and replaces the Gravatar helper with a simplified version… #147
Conversation
Needs another skim before review: CI failing 😁 |
… that achieves the same goal. Signed-off-by: George Steel <george@net-glue.co.uk>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
@gsteel
|
@froschdesign I would leave all notices completely out, for stuff that can be deprecated statically. Notices are only necessary for combinations of input parameters. |
@Ocramius I mean the notice in the documentation: https://docs.laminas.dev/laminas-view/helpers/gravatar/ |
Sorry @froschdesign - #158 is ready for review :) Would you be able to add recently merged pulls to the v3 project under done? This will help me when it comes to going over the deprecations/removals for the migration guide. |
Description
The current Gravatar view helper has a tonne of setters and getters, dodgy inheritance and checks out superglobals to figure out if the current http request is secure or not.
The existing helper is deprecated completely in this pull with a replacement implementation that simply spits out an
img
tag with the relevantsrc
.Notable differences…
src
to avoid inspecting the requestBecause this was originally part of #146 - it imports the psalm type
AttributeSet
from HtmlAttributesSet which is added in #146 so psalm qa will fail.Maybe this pull can be left for when/if 146 is merged and then rebased so psalm passes.