Skip to content

[WIP] PHPStan at max level #188

[WIP] PHPStan at max level

[WIP] PHPStan at max level #188

Triggered via pull request June 21, 2024 15:46
Status Failure
Total duration 1m 42s
Artifacts

ci.yml

on: pull_request
PHPUnit (macOS)
1m 28s
PHPUnit (macOS)
Matrix: PHPStan
Matrix: PHPUnit
Fit to window
Zoom out
Zoom in

Annotations

85 errors
PHPStan (PHP 8.3): src/Protocol/BinaryDumper.php#L88
Parameter #1 $texts of method React\Dns\Protocol\BinaryDumper::textsToBinary() expects array<string>, array<float|int|string|null> given.
PHPStan (PHP 8.3): src/Protocol/BinaryDumper.php#L96
Parameter #1 $host of method React\Dns\Protocol\BinaryDumper::domainNameToBinary() expects string, float|int|string|null given.
PHPStan (PHP 8.3): src/Protocol/BinaryDumper.php#L106
Parameter #1 $host of method React\Dns\Protocol\BinaryDumper::domainNameToBinary() expects string, float|int|string|null given.
PHPStan (PHP 8.3): src/Protocol/BinaryDumper.php#L110
Parameter #1 $host of method React\Dns\Protocol\BinaryDumper::domainNameToBinary() expects string, float|int|string|null given.
PHPStan (PHP 8.3): src/Protocol/BinaryDumper.php#L111
Parameter #1 $host of method React\Dns\Protocol\BinaryDumper::domainNameToBinary() expects string, float|int|string|null given.
PHPStan (PHP 8.3): src/Protocol/BinaryDumper.php#L126
Parameter #1 $string of function strlen expects string, float|int|string|null given.
PHPStan (PHP 8.3): src/Resolver/Resolver.php#L93
Method React\Dns\Resolver\Resolver::extractValues() should return array<string> but returns array<int, float|int|string|null>.
PHPStan (PHP 8.3): src/Resolver/Resolver.php#L118
Parameter #2 $name of method React\Dns\Resolver\Resolver::valuesByNameAndType() expects string, float|int|string|null given.
PHPStan (PHP 8.3): tests/Protocol/ParserTest.php#L54
Access to an undefined property React\Dns\Model\Message::$data.
PHPStan (PHP 8.3): tests/Protocol/ParserTest.php#L55
Access to an undefined property React\Dns\Model\Message::$consumed.
PHPStan (PHP 8.1)
The job was canceled because "_8_3" failed.
PHPStan (PHP 8.1): src/Protocol/BinaryDumper.php#L88
Parameter #1 $texts of method React\Dns\Protocol\BinaryDumper::textsToBinary() expects array<string>, array<float|int|string|null> given.
PHPStan (PHP 8.1): src/Protocol/BinaryDumper.php#L96
Parameter #1 $host of method React\Dns\Protocol\BinaryDumper::domainNameToBinary() expects string, float|int|string|null given.
PHPStan (PHP 8.1): src/Protocol/BinaryDumper.php#L106
Parameter #1 $host of method React\Dns\Protocol\BinaryDumper::domainNameToBinary() expects string, float|int|string|null given.
PHPStan (PHP 8.1): src/Protocol/BinaryDumper.php#L110
Parameter #1 $host of method React\Dns\Protocol\BinaryDumper::domainNameToBinary() expects string, float|int|string|null given.
PHPStan (PHP 8.1): src/Protocol/BinaryDumper.php#L111
Parameter #1 $host of method React\Dns\Protocol\BinaryDumper::domainNameToBinary() expects string, float|int|string|null given.
PHPStan (PHP 8.1): src/Protocol/BinaryDumper.php#L126
Parameter #1 $string of function strlen expects string, float|int|string|null given.
PHPStan (PHP 8.1): src/Resolver/Resolver.php#L93
Method React\Dns\Resolver\Resolver::extractValues() should return array<string> but returns array<int, float|int|string|null>.
PHPStan (PHP 8.1): src/Resolver/Resolver.php#L118
Parameter #2 $name of method React\Dns\Resolver\Resolver::valuesByNameAndType() expects string, float|int|string|null given.
PHPStan (PHP 8.1)
Process completed with exit code 1.
PHPStan (PHP 8.2)
The job was canceled because "_8_3" failed.
PHPStan (PHP 8.2): src/Protocol/BinaryDumper.php#L88
Parameter #1 $texts of method React\Dns\Protocol\BinaryDumper::textsToBinary() expects array<string>, array<float|int|string|null> given.
PHPStan (PHP 8.2): src/Protocol/BinaryDumper.php#L96
Parameter #1 $host of method React\Dns\Protocol\BinaryDumper::domainNameToBinary() expects string, float|int|string|null given.
PHPStan (PHP 8.2): src/Protocol/BinaryDumper.php#L106
Parameter #1 $host of method React\Dns\Protocol\BinaryDumper::domainNameToBinary() expects string, float|int|string|null given.
PHPStan (PHP 8.2): src/Protocol/BinaryDumper.php#L110
Parameter #1 $host of method React\Dns\Protocol\BinaryDumper::domainNameToBinary() expects string, float|int|string|null given.
PHPStan (PHP 8.2): src/Protocol/BinaryDumper.php#L111
Parameter #1 $host of method React\Dns\Protocol\BinaryDumper::domainNameToBinary() expects string, float|int|string|null given.
PHPStan (PHP 8.2): src/Protocol/BinaryDumper.php#L126
Parameter #1 $string of function strlen expects string, float|int|string|null given.
PHPStan (PHP 8.2): src/Resolver/Resolver.php#L93
Method React\Dns\Resolver\Resolver::extractValues() should return array<string> but returns array<int, float|int|string|null>.
PHPStan (PHP 8.2): src/Resolver/Resolver.php#L118
Parameter #2 $name of method React\Dns\Resolver\Resolver::valuesByNameAndType() expects string, float|int|string|null given.
PHPStan (PHP 8.2): tests/Protocol/ParserTest.php#L54
Access to an undefined property React\Dns\Model\Message::$data.
PHPStan (PHP 8.2): tests/Protocol/ParserTest.php#L55
Access to an undefined property React\Dns\Model\Message::$consumed.
PHPStan (PHP 7.2)
The job was canceled because "_8_3" failed.
PHPStan (PHP 7.2): src/Protocol/BinaryDumper.php#L88
Parameter #1 $texts of method React\Dns\Protocol\BinaryDumper::textsToBinary() expects array<string>, array<float|int|string|null> given.
PHPStan (PHP 7.2): src/Protocol/BinaryDumper.php#L96
Parameter #1 $host of method React\Dns\Protocol\BinaryDumper::domainNameToBinary() expects string, float|int|string|null given.
PHPStan (PHP 7.2): src/Protocol/BinaryDumper.php#L106
Parameter #1 $host of method React\Dns\Protocol\BinaryDumper::domainNameToBinary() expects string, float|int|string|null given.
PHPStan (PHP 7.2): src/Protocol/BinaryDumper.php#L110
Parameter #1 $host of method React\Dns\Protocol\BinaryDumper::domainNameToBinary() expects string, float|int|string|null given.
PHPStan (PHP 7.2): src/Protocol/BinaryDumper.php#L111
Parameter #1 $host of method React\Dns\Protocol\BinaryDumper::domainNameToBinary() expects string, float|int|string|null given.
PHPStan (PHP 7.2): src/Protocol/BinaryDumper.php#L126
Parameter #1 $string of function strlen expects string, float|int|string|null given.
PHPStan (PHP 7.2): src/Protocol/Parser.php#L282
Parameter #5 $data of class React\Dns\Model\Record constructor expects array<float|int|string|null>|string, array<int|string, mixed>|string|false given.
PHPStan (PHP 7.2): src/Resolver/Resolver.php#L93
Method React\Dns\Resolver\Resolver::extractValues() should return array<string> but returns array<int, float|int|string|null>.
PHPStan (PHP 7.2): src/Resolver/Resolver.php#L118
Parameter #2 $name of method React\Dns\Resolver\Resolver::valuesByNameAndType() expects string, float|int|string|null given.
PHPStan (PHP 7.2): tests/Query/CachingExecutorTest.php#L27
Parameter #1 $executor of class React\Dns\Query\CachingExecutor constructor expects React\Dns\Query\ExecutorInterface, PHPUnit\Framework\MockObject\MockObject given.
PHPStan (PHP 8)
The job was canceled because "_8_3" failed.
PHPStan (PHP 8): src/Protocol/BinaryDumper.php#L88
Parameter #1 $texts of method React\Dns\Protocol\BinaryDumper::textsToBinary() expects array<string>, array<float|int|string|null> given.
PHPStan (PHP 8): src/Protocol/BinaryDumper.php#L96
Parameter #1 $host of method React\Dns\Protocol\BinaryDumper::domainNameToBinary() expects string, float|int|string|null given.
PHPStan (PHP 8): src/Protocol/BinaryDumper.php#L106
Parameter #1 $host of method React\Dns\Protocol\BinaryDumper::domainNameToBinary() expects string, float|int|string|null given.
PHPStan (PHP 8): src/Protocol/BinaryDumper.php#L110
Parameter #1 $host of method React\Dns\Protocol\BinaryDumper::domainNameToBinary() expects string, float|int|string|null given.
PHPStan (PHP 8): src/Protocol/BinaryDumper.php#L111
Parameter #1 $host of method React\Dns\Protocol\BinaryDumper::domainNameToBinary() expects string, float|int|string|null given.
PHPStan (PHP 8): src/Protocol/BinaryDumper.php#L126
Parameter #1 $string of function strlen expects string, float|int|string|null given.
PHPStan (PHP 8): src/Resolver/Resolver.php#L93
Method React\Dns\Resolver\Resolver::extractValues() should return array<string> but returns array<int, float|int|string|null>.
PHPStan (PHP 8): src/Resolver/Resolver.php#L118
Parameter #2 $name of method React\Dns\Resolver\Resolver::valuesByNameAndType() expects string, float|int|string|null given.
PHPStan (PHP 8)
The operation was canceled.
PHPStan (PHP 7.4)
The job was canceled because "_8_3" failed.
PHPStan (PHP 7.4): src/Protocol/BinaryDumper.php#L88
Parameter #1 $texts of method React\Dns\Protocol\BinaryDumper::textsToBinary() expects array<string>, array<float|int|string|null> given.
PHPStan (PHP 7.4): src/Protocol/BinaryDumper.php#L96
Parameter #1 $host of method React\Dns\Protocol\BinaryDumper::domainNameToBinary() expects string, float|int|string|null given.
PHPStan (PHP 7.4): src/Protocol/BinaryDumper.php#L106
Parameter #1 $host of method React\Dns\Protocol\BinaryDumper::domainNameToBinary() expects string, float|int|string|null given.
PHPStan (PHP 7.4): src/Protocol/BinaryDumper.php#L110
Parameter #1 $host of method React\Dns\Protocol\BinaryDumper::domainNameToBinary() expects string, float|int|string|null given.
PHPStan (PHP 7.4): src/Protocol/BinaryDumper.php#L111
Parameter #1 $host of method React\Dns\Protocol\BinaryDumper::domainNameToBinary() expects string, float|int|string|null given.
PHPStan (PHP 7.4): src/Protocol/BinaryDumper.php#L126
Parameter #1 $string of function strlen expects string, float|int|string|null given.
PHPStan (PHP 7.4): src/Protocol/Parser.php#L282
Parameter #5 $data of class React\Dns\Model\Record constructor expects array<float|int|string|null>|string, array<int|string, mixed>|string|false given.
PHPStan (PHP 7.4): src/Resolver/Resolver.php#L93
Method React\Dns\Resolver\Resolver::extractValues() should return array<string> but returns array<int, float|int|string|null>.
PHPStan (PHP 7.4): src/Resolver/Resolver.php#L118
Parameter #2 $name of method React\Dns\Resolver\Resolver::valuesByNameAndType() expects string, float|int|string|null given.
PHPStan (PHP 7.4)
The operation was canceled.
PHPStan (PHP 7.1)
The job was canceled because "_8_3" failed.
PHPStan (PHP 7.1): src/Protocol/BinaryDumper.php#L88
Parameter #1 $texts of method React\Dns\Protocol\BinaryDumper::textsToBinary() expects array<string>, array<float|int|string|null> given.
PHPStan (PHP 7.1): src/Protocol/BinaryDumper.php#L96
Parameter #1 $host of method React\Dns\Protocol\BinaryDumper::domainNameToBinary() expects string, float|int|string|null given.
PHPStan (PHP 7.1): src/Protocol/BinaryDumper.php#L106
Parameter #1 $host of method React\Dns\Protocol\BinaryDumper::domainNameToBinary() expects string, float|int|string|null given.
PHPStan (PHP 7.1): src/Protocol/BinaryDumper.php#L110
Parameter #1 $host of method React\Dns\Protocol\BinaryDumper::domainNameToBinary() expects string, float|int|string|null given.
PHPStan (PHP 7.1): src/Protocol/BinaryDumper.php#L111
Parameter #1 $host of method React\Dns\Protocol\BinaryDumper::domainNameToBinary() expects string, float|int|string|null given.
PHPStan (PHP 7.1): src/Protocol/BinaryDumper.php#L126
Parameter #1 $string of function strlen expects string, float|int|string|null given.
PHPStan (PHP 7.1): src/Query/CoopExecutor.php#L85
Method React\Dns\Query\CoopExecutor::query() should return React\Promise\PromiseInterface<React\Dns\Model\Message> but returns React\Promise\Promise<mixed>.
PHPStan (PHP 7.3)
The job was canceled because "_8_3" failed.
PHPStan (PHP 7.1): src/Query/FallbackExecutor.php#L34
Method React\Dns\Query\FallbackExecutor::query() should return React\Promise\PromiseInterface<React\Dns\Model\Message> but returns React\Promise\Promise<mixed>.
PHPStan (PHP 7.3): src/Protocol/BinaryDumper.php#L88
Parameter #1 $texts of method React\Dns\Protocol\BinaryDumper::textsToBinary() expects array<string>, array<float|int|string|null> given.
PHPStan (PHP 7.1): src/Query/SelectiveTransportExecutor.php#L78
Method React\Dns\Query\SelectiveTransportExecutor::query() should return React\Promise\PromiseInterface<React\Dns\Model\Message> but returns React\Promise\Promise<mixed>.
PHPStan (PHP 7.3): src/Protocol/BinaryDumper.php#L96
Parameter #1 $host of method React\Dns\Protocol\BinaryDumper::domainNameToBinary() expects string, float|int|string|null given.
PHPStan (PHP 7.1): src/Query/TcpTransportExecutor.php#L153
Cannot access offset 'host' on array{scheme?: string, host?: string, port?: int, user?: string, pass?: string, path?: string, query?: string, fragment?: string}|false.
PHPStan (PHP 7.3): src/Protocol/BinaryDumper.php#L106
Parameter #1 $host of method React\Dns\Protocol\BinaryDumper::domainNameToBinary() expects string, float|int|string|null given.
PHPStan (PHP 7.3): src/Protocol/BinaryDumper.php#L110
Parameter #1 $host of method React\Dns\Protocol\BinaryDumper::domainNameToBinary() expects string, float|int|string|null given.
PHPStan (PHP 7.3): src/Protocol/BinaryDumper.php#L111
Parameter #1 $host of method React\Dns\Protocol\BinaryDumper::domainNameToBinary() expects string, float|int|string|null given.
PHPStan (PHP 7.3): src/Protocol/BinaryDumper.php#L126
Parameter #1 $string of function strlen expects string, float|int|string|null given.
PHPStan (PHP 7.3): src/Protocol/Parser.php#L282
Parameter #5 $data of class React\Dns\Model\Record constructor expects array<float|int|string|null>|string, array<int|string, mixed>|string|false given.
PHPStan (PHP 7.3): src/Resolver/Resolver.php#L93
Method React\Dns\Resolver\Resolver::extractValues() should return array<string> but returns array<int, float|int|string|null>.
PHPStan (PHP 7.3): src/Resolver/Resolver.php#L118
Parameter #2 $name of method React\Dns\Resolver\Resolver::valuesByNameAndType() expects string, float|int|string|null given.
PHPStan (PHP 7.3)
The operation was canceled.