Skip to content

Commit f3427ce

Browse files
authored
Add spelling workflow
1 parent 8f4b3b7 commit f3427ce

File tree

3 files changed

+35
-2
lines changed

3 files changed

+35
-2
lines changed

Diff for: .github/workflows/spelling.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2+
3+
name: "Spelling"
4+
5+
on:
6+
pull_request:
7+
push:
8+
branches:
9+
- "1.11.x"
10+
11+
jobs:
12+
typos:
13+
name: "Check for typos"
14+
runs-on: "ubuntu-latest"
15+
16+
steps:
17+
- name: "Checkout"
18+
uses: actions/checkout@v4
19+
20+
- name: "Check for typos"
21+
uses: "crate-ci/[email protected]"
22+
with:
23+
files: "README.md src/"

Diff for: .typos.toml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[files]
2+
extend-exclude = [
3+
".git/",
4+
]
5+
ignore-hidden = false
6+
7+
[default.extend-identifiers]
8+
# Known typos
9+
NonRemoveableTypeTrait = "NonRemoveableTypeTrait"
10+
supportsLessOverridenParametersWithVariadic = "supportsLessOverridenParametersWithVariadic"

Diff for: src/PhpDoc/StubValidator.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function validate(array $stubFiles, bool $debug): array
9292

9393
$originalBroker = Broker::getInstance();
9494
$originalReflectionProvider = ReflectionProviderStaticAccessor::getInstance();
95-
$originalPhpVerison = PhpVersionStaticAccessor::getInstance();
95+
$originalPhpVersion = PhpVersionStaticAccessor::getInstance();
9696
$container = $this->derivativeContainerFactory->create([
9797
__DIR__ . '/../../conf/config.stubValidator.neon',
9898
]);
@@ -141,7 +141,7 @@ static function (): void {
141141

142142
Broker::registerInstance($originalBroker);
143143
ReflectionProviderStaticAccessor::registerInstance($originalReflectionProvider);
144-
PhpVersionStaticAccessor::registerInstance($originalPhpVerison);
144+
PhpVersionStaticAccessor::registerInstance($originalPhpVersion);
145145
ObjectType::resetCaches();
146146

147147
return $errors;

0 commit comments

Comments
 (0)