]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/PidFile.php
Merge pull request #11786 from Quix0r/revert-11783-logging-unsupported
[friendica.git] / src / Util / PidFile.php
index 6f8233a6a009954b4fddc6fd03d0df53e2fa50fd..38408bcf4bbf498aafd36fe32d19ec6a8aeb2c2d 100644 (file)
@@ -97,7 +97,8 @@ class PidFile
         *
         * @return boolean|string PID or "false" if not created
         */
-       static public function create($file) {
+       static public function create(string $file)
+       {
                $pid = self::pidFromFile($file);
 
                // We have a process id? then we quit
@@ -119,7 +120,8 @@ class PidFile
         *
         * @return boolean Is it running?
         */
-       static public function delete($file) {
+       static public function delete(string $file): bool
+       {
                return @unlink($file);
        }
 }