Skip to content

Commit

Permalink
Merge pull request #380 from hydephp/378-fix-type-issues-in-linkitemphp
Browse files Browse the repository at this point in the history
Fix #378: Use function empty() instead of expression
  • Loading branch information
caendesilva authored Aug 8, 2022
2 parents 4ebb243 + 4fff385 commit 098c1b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/framework/src/Models/Metadata/LinkItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function __construct(protected string $rel, protected string $href, prote

public function __toString(): string
{
if (! $this->attr) {
if (empty($this->attr)) {
return '<link rel="'.e($this->rel).'" href="'.e($this->href).'">';
}

Expand Down

0 comments on commit 098c1b5

Please sign in to comment.