Skip to content

Commit 91f8c05

Browse files
committed
remove E_USER_DEPRECATED deprecated methods
Signed-off-by: Abdul Malik Ikhsan <[email protected]>
1 parent a65f350 commit 91f8c05

File tree

2 files changed

+0
-71
lines changed

2 files changed

+0
-71
lines changed

src/Helper/Gravatar.php

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -189,26 +189,6 @@ public function setAttributes(array $attributes)
189189
return $this;
190190
}
191191

192-
/**
193-
* Set attribs for image tag
194-
*
195-
* @param array $attribs
196-
* @return Gravatar
197-
*
198-
* @deprecated Please use Laminas\View\Helper\Gravatar::setAttributes
199-
*/
200-
public function setAttribs(array $attribs)
201-
{
202-
trigger_error(sprintf(
203-
'%s is deprecated; please use %s::setAttributes',
204-
__METHOD__,
205-
__CLASS__
206-
), E_USER_DEPRECATED);
207-
208-
$this->setAttributes($attribs);
209-
return $this;
210-
}
211-
212192
/**
213193
* Get attributes of image
214194
*
@@ -224,29 +204,6 @@ public function getAttributes()
224204
return $this->attributes;
225205
}
226206

227-
/**
228-
* Get attribs of image
229-
*
230-
* Warning!
231-
* If you set src attrib, you get it, but this value will be overwritten in
232-
* protected method setSrcAttribForImg(). And finally your get other src
233-
* value!
234-
*
235-
* @return array
236-
*
237-
* @deprecated Please use Laminas\View\Helper\Gravatar::getAttributes
238-
*/
239-
public function getAttribs()
240-
{
241-
trigger_error(sprintf(
242-
'%s is deprecated; please use %s::getAttributes',
243-
__METHOD__,
244-
__CLASS__
245-
), E_USER_DEPRECATED);
246-
247-
return $this->getAttributes();
248-
}
249-
250207
/**
251208
* Set default img
252209
*

src/Helper/Placeholder/Registry.php

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -36,34 +36,6 @@ class Registry
3636
*/
3737
protected $items = [];
3838

39-
/**
40-
* Retrieve or create registry instance
41-
*
42-
* @return Registry
43-
*/
44-
public static function getRegistry()
45-
{
46-
trigger_error('Placeholder view helpers should no longer use a singleton registry', E_USER_DEPRECATED);
47-
if (null === static::$instance) {
48-
static::$instance = new static();
49-
}
50-
51-
return static::$instance;
52-
}
53-
54-
/**
55-
* Unset the singleton
56-
*
57-
* Primarily useful for testing purposes; sets {@link $instance} to null.
58-
*
59-
* @return void
60-
*/
61-
public static function unsetRegistry()
62-
{
63-
trigger_error('Placeholder view helpers should no longer use a singleton registry', E_USER_DEPRECATED);
64-
static::$instance = null;
65-
}
66-
6739
/**
6840
* Set the container for an item in the registry
6941
*

0 commit comments

Comments
 (0)