diff --git a/.github/workflows/spelling.yml b/.github/workflows/spelling.yml new file mode 100644 index 0000000..aeac4b1 --- /dev/null +++ b/.github/workflows/spelling.yml @@ -0,0 +1,22 @@ +name: Spelling + +on: + push: + branches: + - master + pull_request: 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 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 {