From 60c42d93c8d457a1677a30a9d962e892efa8346c Mon Sep 17 00:00:00 2001 From: Mike Manger Date: Thu, 27 Feb 2025 15:15:27 +0000 Subject: [PATCH 1/3] Fix a couple of typos --- src/NodeVisitor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NodeVisitor.php b/src/NodeVisitor.php index b74a97c..2505150 100644 --- a/src/NodeVisitor.php +++ b/src/NodeVisitor.php @@ -323,7 +323,7 @@ public function getStubStmts(): array /** * Returns the counts of all symbols included in the stubs, grouped by type. * - * These counts are built up during traveral. + * These counts are built up during traversal. * * @psalm-return array> */ @@ -466,7 +466,7 @@ private function resolveClassLike(ClassLikeWithDependencies $clwd): void $namespaceMatches = !$clwd->namespace; } - // Reduntant check to make Psalm happy. + // Redundant check to make Psalm happy. if ($this->currentClassLikeNamespace && $namespaceMatches) { $this->currentClassLikeNamespace->stmts[] = $clwd->node; } else { From f2452b882823c37cfcd3c95bbae222f3f3246f9a Mon Sep 17 00:00:00 2001 From: Mike Manger Date: Thu, 27 Feb 2025 15:16:52 +0000 Subject: [PATCH 2/3] Add spellcheck workflow --- .github/workflows/spelling.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/spelling.yml diff --git a/.github/workflows/spelling.yml b/.github/workflows/spelling.yml new file mode 100644 index 0000000..c815116 --- /dev/null +++ b/.github/workflows/spelling.yml @@ -0,0 +1,23 @@ +name: Spelling + +on: + push: + branches: + - master + pull_request: null + workflow_dispatch: null + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + typos_check: + name: Typos + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Check spelling + uses: crate-ci/typos@master \ No newline at end of file From 0c14ef16f4c557810488b67ebf5a4499325cb773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Thu, 27 Feb 2025 16:22:52 +0100 Subject: [PATCH 3/3] Update spelling.yml --- .github/workflows/spelling.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/spelling.yml b/.github/workflows/spelling.yml index c815116..aeac4b1 100644 --- a/.github/workflows/spelling.yml +++ b/.github/workflows/spelling.yml @@ -5,7 +5,6 @@ on: branches: - master pull_request: null - workflow_dispatch: null concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -20,4 +19,4 @@ jobs: uses: actions/checkout@v4 - name: Check spelling - uses: crate-ci/typos@master \ No newline at end of file + uses: crate-ci/typos@master