Skip to content

Commit

Permalink
drop php 8.0 support (#1256)
Browse files Browse the repository at this point in the history
* bump php to 8.1, apply rector
* readonly and typehints
* suppress a dodgy readonly property conversion
* remove some redundant readonly phpdocs
* dont run workflows against 8.0
* more readonly and typehints
* phpdoc reformat
* typehints
* remove php81 polyfill
* revert a rector BC breaking change, and disable that rector for ParentBased
  • Loading branch information
brettmc authored Mar 14, 2024
1 parent b0ca56f commit f0c4e0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions GrpcTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@
*/
final class GrpcTransport implements TransportInterface
{
private array $metadata;
private Channel $channel;
private readonly array $metadata;
private readonly Channel $channel;
private bool $closed = false;

public function __construct(
string $endpoint,
array $opts,
private string $method,
private readonly string $method,
array $headers = [],
) {
$this->channel = new Channel($endpoint, $opts);
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
],
"require": {
"php": "^8.0",
"php": "^8.1",
"ext-grpc": "*",
"grpc/grpc": "*",
"open-telemetry/sdk": "^1.0"
Expand Down

0 comments on commit f0c4e0e

Please sign in to comment.