Skip to content

Commit

Permalink
Merge branch '6.0' into 6
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Jan 8, 2025
2 parents ad9658c + a081e08 commit a811b62
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/DataObjects/QueuedJobDescriptor.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ protected function getJobDir()
// make sure our temp dir is in place. This is what will be inotify watched
$jobDir = Config::inst()->get(QueuedJobService::class, 'cache_dir');
if ($jobDir[0] !== '/') {
$jobDir = TEMP_FOLDER . '/' . $jobDir;
$jobDir = TEMP_PATH . '/' . $jobDir;
}

if (!is_dir($jobDir ?? '')) {
Expand Down
1 change: 0 additions & 1 deletion src/Jobs/DoormanQueuedJobTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Symbiote\QueuedJobs\Jobs;

use SilverStripe\Dev\Deprecation;
use AsyncPHP\Doorman\Cancellable;
use AsyncPHP\Doorman\Expires;
use AsyncPHP\Doorman\Process;
Expand Down
9 changes: 2 additions & 7 deletions src/Services/JobErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,9 @@ public function clear()
public function handleError($errno, $errstr, $errfile, $errline)
{
if (error_reporting()) {
// Don't throw E_DEPRECATED in PHP 5.3+
if (defined('E_DEPRECATED')) {
if ($errno == E_DEPRECATED || $errno == E_USER_DEPRECATED) {
return;
}
}

switch ($errno) {
case E_DEPRECATED:
case E_USER_DEPRECATED:
case E_NOTICE:
case E_USER_NOTICE:
case E_STRICT:
Expand Down

0 comments on commit a811b62

Please sign in to comment.