Skip to content

Commit 95cc13a

Browse files
committed
[ci] add typos workflow
1 parent 26f01b6 commit 95cc13a

7 files changed

Lines changed: 32 additions & 3 deletions

File tree

.github/typos.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[default.extend-words]
2+
Symplify = "Symplify"
3+
4+
# doctrine behavior
5+
Deleteable = "Deleteable"

.github/workflows/typos.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# see https://github.com/crate-ci/typos
2+
name: "Typos"
3+
4+
on:
5+
pull_request:
6+
push:
7+
branches:
8+
- "main"
9+
10+
jobs:
11+
typos:
12+
name: "Check for typos"
13+
runs-on: "ubuntu-latest"
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
19+
20+
- name: "Check for typos"
21+
uses: "crate-ci/typos@v1.40.0"
22+
with:
23+
config: .github/typos.toml
24+
files: "README.md src config rules tests rules-tests"

rules-tests/CodeQuality/Rector/Class_/YamlToAttributeDoctrineMappingRector/config/yaml_mapping/embdded_mapping.yml renamed to rules-tests/CodeQuality/Rector/Class_/YamlToAttributeDoctrineMappingRector/config/yaml_mapping/embedded_mapping.yml

File renamed without changes.

rules-tests/CodeQuality/Rector/Class_/YamlToAttributeDoctrineMappingRector/config/yaml_mapping/embdded_mapping_prefix_false.yml renamed to rules-tests/CodeQuality/Rector/Class_/YamlToAttributeDoctrineMappingRector/config/yaml_mapping/embedded_mapping_prefix_false.yml

File renamed without changes.

rules-tests/CodeQuality/Rector/Property/TypedPropertyFromToOneRelationTypeRector/Fixture/do_no_preprend_slash.php.inc renamed to rules-tests/CodeQuality/Rector/Property/TypedPropertyFromToOneRelationTypeRector/Fixture/do_no_prepend_slash.php.inc

File renamed without changes.

rules-tests/Dbal40/Rector/StmtsAwareInterface/ExecuteQueryParamsToBindValueRector/Fixture/some_file_with_execture.php.inc renamed to rules-tests/Dbal40/Rector/StmtsAwareInterface/ExecuteQueryParamsToBindValueRector/Fixture/some_file_with_execute.php.inc

File renamed without changes.

rules/DoctrineFixture/Rector/MethodCall/AddGetReferenceTypeRector.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,13 @@ public function refactor(Node $node): MethodCall|null
104104
return null;
105105
}
106106

107-
$callerParameterObjetType = $this->parameterTypeResolver->resolveCallerFirstParameterObjectType($node);
108-
if (! $callerParameterObjetType instanceof ObjectType) {
107+
$callerParameterObjectType = $this->parameterTypeResolver->resolveCallerFirstParameterObjectType($node);
108+
if (! $callerParameterObjectType instanceof ObjectType) {
109109
return null;
110110
}
111111

112112
$nestedMethodCall->args[] = new Arg(new ClassConstFetch(new FullyQualified(
113-
$callerParameterObjetType->getClassName()
113+
$callerParameterObjectType->getClassName()
114114
), 'class'));
115115
return $node;
116116
}

0 commit comments

Comments
 (0)