-
Notifications
You must be signed in to change notification settings - Fork 61
Deprecate Attribs and Proxy to Attributes #139
Conversation
test/Helper/GravatarTest.php
Outdated
@@ -302,4 +302,12 @@ public function testSetAttribsDocCommentHasDeprecated() | |||
|
|||
$this->assertContains('@deprecated', $comment); | |||
} | |||
|
|||
/** | |||
* @expectedException PHPUnit\Framework\Error\Deprecated |
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.
Please look at Travis:
- ZendTest\View\Helper\GravatarTest::testGetAttribsIsDeprecated
ReflectionException: Class PHPUnit\Framework\Error\Deprecated does not exist
https://travis-ci.org/zendframework/zend-view/jobs/275727410#L733
test/Helper/GravatarTest.php
Outdated
@@ -285,4 +285,12 @@ public function testEmailIsProperlyNormalized() | |||
$this->helper->__invoke('Example@Example.com ')->getEmail() | |||
); | |||
} | |||
|
|||
/** | |||
* @expectedException PHPUnit\Framework\Error\Deprecated |
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.
Please look at Travis:
- ZendTest\View\Helper\GravatarTest::testSetAttribsIsDeprecated
ReflectionException: Class PHPUnit\Framework\Error\Deprecated does not exist
https://travis-ci.org/zendframework/zend-view/jobs/275727410#L730
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.
Yes. I forgot to comment about it (0:01 AM). I'll fix it right now
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.
I would suggest using method instead of annotation. I know here it doesn't matter because test contain just one call, but I would change it for consistency.
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.
I don't like annotations, too. But, if I remember, this use is recommended. But I'll change it.
Related to #87 |
I'll create @froschdesign is that OK? :) |
I broke HHVM instances. Let's see what I can do. |
@wandersonwhcr We are dropping hhvm support anyway... |
src/Helper/Gravatar.php
Outdated
* @param array $attributes | ||
* @return Gravatar | ||
* | ||
* @deprecated Please use Zend\View\Helper\Gravatar::setAttributes |
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.
We shouldn't have deprecated tag on that method.
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.
Whoops
In other libraries we have |
I rebased my branch and changed source as requested. I hate "do-undo-redo" commits ;) I'll fix HHVM, just give a couple of hours. |
Done. |
Deprecate Attribs and Proxy to Attributes
Thanks, @wandersonwhcr. Merged to develop for release with 2.10.0. |
@weierophinney |
@froschdesign I... didn't? At least, not intentionally. I have no idea why it indicates that at this point. I don't recall doing anything other than closing the window after I was done with this merge; the comment itself was added via the CLI. |
Remove all references to
attribs
, translating toattributes
. Public methods likesetAttribs
andgetAttribs
trigger anE_USER_DEPRECATED
and proxy tosetAttributes
andgetAttributes
instead.Fix #87