Skip to content

feat!: Remove formatter #777

feat!: Remove formatter

feat!: Remove formatter #777

Triggered via pull request February 13, 2025 06:43
Status Success
Total duration 29s
Artifacts

static-analysis.yml

on: pull_request
Lint & Analyse
21s
Lint & Analyse
Fit to window
Zoom out
Zoom in

Annotations

11 warnings
Lint & Analyse
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v2. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
MixedAssignment: src/Bolt/BoltUnmanagedTransaction.php#L165
src/Bolt/BoltUnmanagedTransaction.php:165:33: MixedAssignment: Unable to determine the type that $statement is being assigned to (see https://psalm.dev/032)
MixedArgument: src/Bolt/BoltUnmanagedTransaction.php#L166
src/Bolt/BoltUnmanagedTransaction.php:166:42: MixedArgument: Argument 1 of Laudis\Neo4j\Bolt\BoltUnmanagedTransaction::runStatement cannot be mixed, expecting Laudis\Neo4j\Databags\Statement (see https://psalm.dev/030)
MixedAssignment: src/Bolt/Session.php#L71
src/Bolt/Session.php:71:33: MixedAssignment: Unable to determine the type that $statement is being assigned to (see https://psalm.dev/032)
MixedArgument: src/Bolt/Session.php#L72
src/Bolt/Session.php:72:91: MixedArgument: Argument 1 of Laudis\Neo4j\Contracts\UnmanagedTransactionInterface::runStatement cannot be mixed, expecting Laudis\Neo4j\Databags\Statement (see https://psalm.dev/030)
MixedArgument: src/Formatter/SummarizedResultFormatter.php#L156
src/Formatter/SummarizedResultFormatter.php:156:49: MixedArgument: Argument 1 of Laudis\Neo4j\Formatter\SummarizedResultFormatter::formatBoltStats cannot be array<array-key, mixed>|mixed, expecting array{stats?: array{'constraints-added'?: int, 'constraints-removed'?: int, 'contains-system-updates'?: bool, 'contains-updates'?: bool, 'indexes-added'?: int, 'indexes-removed'?: int, 'labels-added'?: int, 'labels-removed'?: int, 'nodes-created'?: int, 'nodes-deleted'?: int, 'properties-set'?: int, 'relationships-created'?: int, 'relationships-deleted'?: int, 'system-updates'?: int, db?: string}, ...<array-key, mixed>} (see https://psalm.dev/030)
MixedArgument: src/Formatter/SummarizedResultFormatter.php#L156
src/Formatter/SummarizedResultFormatter.php:156:49: MixedArgument: Argument 1 of Laudis\Neo4j\Formatter\SummarizedResultFormatter::formatBoltStats cannot be mixed, expecting array{stats?: array{'constraints-added'?: int, 'constraints-removed'?: int, 'contains-system-updates'?: bool, 'contains-updates'?: bool, 'indexes-added'?: int, 'indexes-removed'?: int, 'labels-added'?: int, 'labels-removed'?: int, 'nodes-created'?: int, 'nodes-deleted'?: int, 'properties-set'?: int, 'relationships-created'?: int, 'relationships-deleted'?: int, 'system-updates'?: int, db?: string}, ...<array-key, mixed>} (see https://psalm.dev/030)
MixedAssignment: src/Formatter/SummarizedResultFormatter.php#L158
src/Formatter/SummarizedResultFormatter.php:158:17: MixedAssignment: Unable to determine the type that $db is being assigned to (see https://psalm.dev/032)
MixedArgument: src/Formatter/SummarizedResultFormatter.php#L161
src/Formatter/SummarizedResultFormatter.php:161:38: MixedArgument: Argument 1 of Laudis\Neo4j\Databags\DatabaseInfo::__construct cannot be ''|mixed, expecting string (see https://psalm.dev/030)
MixedArgumentTypeCoercion: src/Formatter/SummarizedResultFormatter.php#L177
src/Formatter/SummarizedResultFormatter.php:177:53: MixedArgumentTypeCoercion: Argument 1 of Laudis\Neo4j\Formatter\SummarizedResultFormatter::processBoltResult expects array{fields: list<string>, qid?: int, t_first: int}, but parent type array<array-key, mixed> provided (see https://psalm.dev/194)
MixedReturnTypeCoercion: src/Formatter/SummarizedResultFormatter.php#L190
src/Formatter/SummarizedResultFormatter.php:190:16: MixedReturnTypeCoercion: The declared return type 'Laudis\Neo4j\Types\CypherList<Laudis\Neo4j\Types\CypherMap<Laudis\Neo4j\Types\Cartesian3DPoint|Laudis\Neo4j\Types\CartesianPoint|Laudis\Neo4j\Types\CypherList<mixed>|Laudis\Neo4j\Types\CypherMap<mixed>|Laudis\Neo4j\Types\Date|Laudis\Neo4j\Types\DateTime|Laudis\Neo4j\Types\DateTimeZoneId|Laudis\Neo4j\Types\Duration|Laudis\Neo4j\Types\LocalDateTime|Laudis\Neo4j\Types\LocalTime|Laudis\Neo4j\Types\Node|Laudis\Neo4j\Types\Path|Laudis\Neo4j\Types\Relationship|Laudis\Neo4j\Types\Time|Laudis\Neo4j\Types\WGS843DPoint|Laudis\Neo4j\Types\WGS84Point|null|scalar>>' for Laudis\Neo4j\Formatter\SummarizedResultFormatter::processBoltResult is more specific than the inferred return type 'Laudis\Neo4j\Types\CypherList<Laudis\Neo4j\Types\CypherMap, int>&static' (see https://psalm.dev/197)