Skip to content

Commit

Permalink
Apply @PHP81Migration ruleset
Browse files Browse the repository at this point in the history
  • Loading branch information
williamjallen committed Aug 17, 2023
1 parent f74a2a8 commit 0a3ee43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/cdash/xml_handlers/upload_handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public function startElement($parser, $name, $attributes)

// Create tmp file
$this->TmpFilename = tempnam($config->get('CDASH_UPLOAD_DIRECTORY'), 'tmp'); // TODO Handle error
chmod($this->TmpFilename, 0644);
chmod($this->TmpFilename, 0o644);

if (empty($this->TmpFilename)) {
add_log('Failed to create temporary filename', __FILE__ . ':' . __LINE__ . ' - ' . __FUNCTION__, LOG_ERR);
Expand Down
2 changes: 1 addition & 1 deletion config/logging.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
'path' => storage_path('logs/cdash.log'),
'level' => 'debug',
'days' => 14,
'permission' => 0664,
'permission' => 0o664,
],

'slack' => [
Expand Down

0 comments on commit 0a3ee43

Please sign in to comment.