Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
msmakouz committed Mar 1, 2024
1 parent 2dda706 commit 4b81bbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private function makeActivity(ReflectionClass $class): object
/** @psalm-suppress InvalidArgument */
return $this->scope->runScope(
new Scope('temporal.activity'),
static fn(FactoryInterface $factory): object => $factory->make($class->getName()),
static fn (FactoryInterface $factory): object => $factory->make($class->getName()),
);
}
}
3 changes: 1 addition & 2 deletions tests/app/src/SomeActivityWithScope.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
namespace Spiral\TemporalBridge\Tests\App;

use Spiral\Core\Attribute\Scope;
use Spiral\Framework\Spiral;
use Spiral\TemporalBridge\Attribute\AssignWorker;

#[Scope(Spiral::TemporalActivity)]
#[Scope('temporal.activity')]
#[AssignWorker(taskQueue: 'worker1')]
class SomeActivityWithScope
{
Expand Down

0 comments on commit 4b81bbc

Please sign in to comment.