Skip to content

Commit

Permalink
Merge pull request #213 from laminas/renovate/lock-file-maintenance
Browse files Browse the repository at this point in the history
Lock file maintenance, minor type inference improvements for the Gravatar view helper
  • Loading branch information
Ocramius authored Aug 17, 2023
2 parents 3401dd7 + 3bf6820 commit 055623f
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 34 deletions.
40 changes: 20 additions & 20 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.13.1@086b94371304750d1c673315321a55d15fc59015">
<files psalm-version="5.14.0@b2942cefed8443002bd3f245c4cd0a54193716d8">
<file src="bin/templatemap_generator.php">
<MissingParamType>
<code>$templatePath</code>
Expand Down Expand Up @@ -198,9 +198,6 @@
<code>$email</code>
<code>$emailIsHashed</code>
</MissingConstructor>
<MixedArgumentTypeCoercion>
<code>$key</code>
</MixedArgumentTypeCoercion>
<MixedAssignment>
<code>$value</code>
</MixedAssignment>
Expand Down
20 changes: 10 additions & 10 deletions src/Helper/Gravatar.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Gravatar extends AbstractHtmlElement
/**
* Attributes for HTML image tag
*
* @var array
* @var array<string, mixed>
*/
protected $attributes;

Expand All @@ -76,7 +76,7 @@ class Gravatar extends AbstractHtmlElement
/**
* Options
*
* @var array
* @var array<string, mixed>
*/
protected $options = [
'img_size' => 80,
Expand All @@ -97,9 +97,9 @@ class Gravatar extends AbstractHtmlElement
* @see http://pl.gravatar.com/site/implement/url
* @see http://pl.gravatar.com/site/implement/url More information about gravatar's service.
*
* @param string|null $email Email address.
* @param null|array $options Options
* @param array $attributes Attributes for image tag (title, alt etc.)
* @param string|null $email Email address.
* @param array<string, mixed> $options Options
* @param array<string, mixed> $attributes Attributes for image tag (title, alt etc.)
* @return Gravatar
*/
public function __invoke($email = "", $options = [], $attributes = [])
Expand Down Expand Up @@ -130,7 +130,7 @@ public function __toString()
/**
* Configure state
*
* @param array $options
* @param array<string, mixed> $options
* @return Gravatar
*/
public function setOptions(array $options)
Expand Down Expand Up @@ -189,7 +189,7 @@ public function getImgTag()
* This attribute is overwritten in protected method setSrcAttribForImg().
* This method(_setSrcAttribForImg) is called in public method getImgTag().
*
* @param array $attributes
* @param array<string, mixed> $attributes
* @return Gravatar
*/
public function setAttributes(array $attributes)
Expand All @@ -203,7 +203,7 @@ public function setAttributes(array $attributes)
*
* @deprecated Please use Laminas\View\Helper\Gravatar::setAttributes
*
* @param array $attribs
* @param array<string, mixed> $attribs
* @return Gravatar
*/
public function setAttribs(array $attribs)
Expand All @@ -226,7 +226,7 @@ public function setAttribs(array $attribs)
* protected method setSrcAttribForImg(). And finally your get other src
* value!
*
* @return array
* @return array<string, mixed>
*/
public function getAttributes()
{
Expand All @@ -243,7 +243,7 @@ public function getAttributes()
*
* @deprecated Please use Laminas\View\Helper\Gravatar::getAttributes
*
* @return array
* @return array<string, mixed>
*/
public function getAttribs()
{
Expand Down

0 comments on commit 055623f

Please sign in to comment.