diff --git a/src/PKPass.php b/src/PKPass.php index f46ade5..90ec51f 100644 --- a/src/PKPass.php +++ b/src/PKPass.php @@ -315,7 +315,7 @@ public function create($output = false) // Output pass header('Content-Description: File Transfer'); - header('Content-Type: ' . self::MIME_TYPE); + header('Content-Type: ' . static::MIME_TYPE); header('Content-Disposition: attachment; filename="' . $this->getName() . '"'); header('Content-Transfer-Encoding: binary'); header('Connection: Keep-Alive'); @@ -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;