Skip to content

v3.0.0

Compare
Choose a tag to compare
@butschster butschster released this 14 Apr 09:10
· 28 commits to 3.x since this release
97f966a

Features

  • Upgraded to PHP 8.1
  • Upgraded to PHPUnit 10
  • Upgraded to Psalm 5
  • Added reusable Gh Actions
  • Added metapackage spiral/roadrunner:^2023

Breaking Changes

Spiral\RoadRunner\WorkerInterface Changes

It has been updated with two new methods:

  • hasPayload(string $class = null): bool
  • getPayload(string $class = null): ?Payload

If your code uses Spiral\RoadRunner\WorkerInterface, you will need to update it to include these new methods.

Spiral\RoadRunne\Worker Changes

It has been updated to include a new constructor argument, allowing for a custom logger to be set.

The constructor signature is now:

public function __construct(
    private readonly RelayInterface $relay,
    bool $interceptSideEffects = true,
    private readonly LoggerInterface $logger = new Logger(),  // <====== new argument
) {
   ...
}

Spiral\RoadRunner\Payload Changes

It has been marked as internal, which means that it can no longer be used directly by user code.

Additionally, the body and header properties have been marked as readonly, which means that they cannot be modified once set.

Spiral\RoadRunner\Exception\RoadRunnerException Changes

It has been marked as final, which means that it can no longer be extended by user code. If your code extends it, you will need to update it to handle exceptions in a different way.

Please note that these changes may require updates to your existing code, so be sure to review the breaking changes before upgrading to version 3.0.0.

Full Changelog: v2.3.0...3.0.0