Skip to content

Commit a8e35d2

Browse files
committed
chore: remove psalm
1 parent 15cfe29 commit a8e35d2

File tree

13 files changed

+15
-90
lines changed

13 files changed

+15
-90
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@
77
/phpcs.xml.dist export-ignore
88
/phpstan.neon.dist export-ignore
99
/phpunit.xml.dist export-ignore
10-
/psalm.xml.dist export-ignore
1110
/tests export-ignore

.github/workflows/infection.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ jobs:
3333
- name: Run Infection
3434
run: |
3535
export $ENV
36-
vendor/bin/roave-infection-static-analysis-plugin --threads=$(nproc)
36+
vendor/bin/infection --threads=$(nproc)
3737
env:
3838
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}

.github/workflows/static-analysis.yml

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -33,34 +33,3 @@ jobs:
3333

3434
- name: "Run a static analysis with phpstan/phpstan"
3535
run: "vendor/bin/phpstan analyse --error-format=checkstyle | cs2pr"
36-
37-
static-analysis-psalm:
38-
name: "Static Analysis with Psalm"
39-
runs-on: "ubuntu-latest"
40-
41-
strategy:
42-
matrix:
43-
php-version:
44-
- "8.2"
45-
46-
steps:
47-
- name: "Checkout code"
48-
uses: actions/checkout@v4
49-
50-
- name: "Install PHP"
51-
uses: "shivammathur/setup-php@v2"
52-
with:
53-
coverage: "none"
54-
php-version: "${{ matrix.php-version }}"
55-
tools: "cs2pr"
56-
57-
- name: "Install dependencies with Composer"
58-
uses: "ramsey/composer-install@v2"
59-
60-
- name: "Run a static analysis with vimeo/psalm"
61-
run: "vendor/bin/psalm --output-format=github --shepherd --taint-analysis --report=results.sarif"
62-
63-
- name: "Upload Security Analysis results to GitHub"
64-
uses: github/codeql-action/upload-sarif@v3
65-
with:
66-
sarif_file: results.sarif

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@
66
/phpcs.xml
77
/phpunit.xml
88
/phpstan.neon
9-
/psalm.xml.dist
109
/vendor/

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
[![Build Status](https://github.com/simPod/PhpClickHouseClient/workflows/CI/badge.svg?branch=master)](https://github.com/simPod/PhpClickHouseClient/actions)
44
[![Code Coverage][Coverage image]][CodeCov Master]
55
[![Downloads](https://poser.pugx.org/simpod/clickhouse-client/d/total.svg)](https://packagist.org/packages/simpod/clickhouse-client)
6-
[![Type Coverage](https://shepherd.dev/github/simPod/PhpClickHouseClient/coverage.svg)](https://shepherd.dev/github/simPod/PhpClickHouseClient)
76
[![Infection MSI](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2FsimPod%2FPhpClickHouseClient%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/simPod/PhpClickHouseClient/master)
87

98
## Motivation

composer.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,7 @@
4646
"phpstan/phpstan-phpunit": "^1.0.0",
4747
"phpstan/phpstan-strict-rules": "^1.0.0",
4848
"phpunit/phpunit": "^10.1",
49-
"psalm/plugin-phpunit": "0.18.4",
50-
"roave/infection-static-analysis-plugin": "^1.6",
51-
"symfony/http-client": "^7.0",
52-
"vimeo/psalm": "^5.0.0"
49+
"symfony/http-client": "^7.0"
5350
},
5451
"autoload": {
5552
"psr-4": {

psalm-baseline.xml

Lines changed: 0 additions & 14 deletions
This file was deleted.

psalm.xml.dist

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/Output/Basic.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace SimPod\ClickHouseClient\Output;
66

77
/**
8-
* @psalm-immutable
8+
* @phpstan-immutable
99
* @template T
1010
* @implements Output<T>
1111
*/

src/Output/Json.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use const JSON_THROW_ON_ERROR;
1212

1313
/**
14-
* @psalm-immutable
14+
* @phpstan-immutable
1515
* @template T
1616
* @implements Output<T>
1717
*/
@@ -33,10 +33,14 @@ final class Json implements Output
3333
/** @throws JsonException */
3434
public function __construct(string $contentsJson)
3535
{
36-
// phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
3736
/**
38-
* @var array{data: list<T>, meta: array<mixed>, rows: int, rows_before_limit_at_least?: int, statistics: array{elapsed: float, rows_read: int, bytes_read: int}} $contents
39-
* @psalm-suppress ImpureFunctionCall
37+
* @var array{
38+
* data: list<T>,
39+
* meta: array<mixed>,
40+
* rows: int,
41+
* rows_before_limit_at_least?: int,
42+
* statistics: array{elapsed: float, rows_read: int, bytes_read: int}
43+
* } $contents
4044
*/
4145
$contents = json_decode($contentsJson, true, flags: JSON_THROW_ON_ERROR);
4246
$this->data = $contents['data'];

0 commit comments

Comments
 (0)