Skip to content

Commit

Permalink
Use static late binding for file name
Browse files Browse the repository at this point in the history
  • Loading branch information
L45eMy authored Sep 30, 2024
1 parent cc368d1 commit 079f19f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PKPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,9 @@ public function create($output = false)
*/
public function getName()
{
$name = $this->name ?: self::FILE_TYPE;
$name = $this->name ?: static::FILE_TYPE;
if (!strstr($name, '.')) {
$name .= '.' . self::FILE_EXT;
$name .= '.' . static::FILE_EXT;
}

return $name;
Expand Down

0 comments on commit 079f19f

Please sign in to comment.