Skip to content

Commit

Permalink
Apply Rector changes (CI)
Browse files Browse the repository at this point in the history
  • Loading branch information
xepozz authored and github-actions[bot] committed Nov 24, 2024
1 parent 31e5df6 commit fde266e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Command/DebugServerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ final class DebugServerCommand extends Command
protected static $defaultDescription = 'Runs PHP built-in web server';

public function __construct(
private string $address = '0.0.0.0',
private int $port = 8890,
private readonly string $address = '0.0.0.0',
private readonly int $port = 8890,
) {
parent::__construct();
}
Expand Down
4 changes: 2 additions & 2 deletions src/DebugServer/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ final class Connection
private string $uri;

Check failure on line 29 in src/DebugServer/Connection.php

View workflow job for this annotation

GitHub Actions / psalm / PHP 8.1-ubuntu-latest

PropertyNotSetInConstructor

src/DebugServer/Connection.php:29:20: PropertyNotSetInConstructor: Property Yiisoft\Yii\Debug\DebugServer\Connection::$uri is not defined in constructor of Yiisoft\Yii\Debug\DebugServer\Connection or in any private or final methods called in the constructor (see https://psalm.dev/074)

Check failure on line 29 in src/DebugServer/Connection.php

View workflow job for this annotation

GitHub Actions / psalm / PHP 8.2-ubuntu-latest

PropertyNotSetInConstructor

src/DebugServer/Connection.php:29:20: PropertyNotSetInConstructor: Property Yiisoft\Yii\Debug\DebugServer\Connection::$uri is not defined in constructor of Yiisoft\Yii\Debug\DebugServer\Connection or in any private or final methods called in the constructor (see https://psalm.dev/074)

public function __construct(
private Socket $socket,
private readonly Socket $socket,
) {
}

Expand Down Expand Up @@ -105,7 +105,7 @@ public function read(): Generator
continue;
}

$length = unpack('P', $header);
$length = unpack('P', (string) $header);

Check failure on line 108 in src/DebugServer/Connection.php

View workflow job for this annotation

GitHub Actions / psalm / PHP 8.1-ubuntu-latest

RedundantCast

src/DebugServer/Connection.php:108:35: RedundantCast: Redundant cast to string (see https://psalm.dev/262)

Check failure on line 108 in src/DebugServer/Connection.php

View workflow job for this annotation

GitHub Actions / psalm / PHP 8.2-ubuntu-latest

RedundantCast

src/DebugServer/Connection.php:108:35: RedundantCast: Redundant cast to string (see https://psalm.dev/262)
$localBuffer = '';
$bytesToRead = $length[1];
$bytesRead = 0;
Expand Down

0 comments on commit fde266e

Please sign in to comment.