Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[default.extend-words]
Symplify = "Symplify"

# doctrine behavior
Deleteable = "Deleteable"

# fixing typo in code
"Fullfilled" = "Fullfilled"

24 changes: 24 additions & 0 deletions .github/workflows/typos.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# see https://github.com/crate-ci/typos
name: "Typos"

on:
pull_request:
push:
branches:
- "main"

jobs:
typos:
name: "Check for typos"
runs-on: "ubuntu-latest"

steps:
- uses: actions/checkout@v4



- name: "Check for typos"
uses: "crate-ci/[email protected]"
with:
config: .github/typos.toml
files: "README.md src config rules tests rules-tests"
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ class SkipAlreadyUsingCorrectFunction
{
public function getResults(): iterable
{
return $this->getEnityManager()->select('e')->from('entity')->getQuery()->toIterable();
return $this->getEntityManager()->select('e')->from('entity')->getQuery()->toIterable();
}
}

?>
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@ public function refactor(Node $node): MethodCall|null
return null;
}

$callerParameterObjetType = $this->parameterTypeResolver->resolveCallerFirstParameterObjectType($node);
if (! $callerParameterObjetType instanceof ObjectType) {
$callerParameterObjectType = $this->parameterTypeResolver->resolveCallerFirstParameterObjectType($node);
if (! $callerParameterObjectType instanceof ObjectType) {
return null;
}

$nestedMethodCall->args[] = new Arg(new ClassConstFetch(new FullyQualified(
$callerParameterObjetType->getClassName()
$callerParameterObjectType->getClassName()
), 'class'));
return $node;
}
Expand Down