Skip to content

Commit 16d9fa9

Browse files
Correct typos and add spelling workflow (#30)
* Fix a couple of typos * Add spellcheck workflow * Update spelling.yml --------- Co-authored-by: Viktor Szépe <[email protected]>
1 parent 76b2c7d commit 16d9fa9

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

.github/workflows/spelling.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Spelling
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request: null
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
typos_check:
15+
name: Typos
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
21+
- name: Check spelling
22+
uses: crate-ci/typos@master

src/NodeVisitor.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ public function getStubStmts(): array
323323
/**
324324
* Returns the counts of all symbols included in the stubs, grouped by type.
325325
*
326-
* These counts are built up during traveral.
326+
* These counts are built up during traversal.
327327
*
328328
* @psalm-return array<string, array<string, int>>
329329
*/
@@ -466,7 +466,7 @@ private function resolveClassLike(ClassLikeWithDependencies $clwd): void
466466
$namespaceMatches = !$clwd->namespace;
467467
}
468468

469-
// Reduntant check to make Psalm happy.
469+
// Redundant check to make Psalm happy.
470470
if ($this->currentClassLikeNamespace && $namespaceMatches) {
471471
$this->currentClassLikeNamespace->stmts[] = $clwd->node;
472472
} else {

0 commit comments

Comments
 (0)