Skip to content

Commit 862ff84

Browse files
committed
TASK: Fix some minor issues
1 parent 8962494 commit 862ff84

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

phpstan.neon

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@ parameters:
1515
- '*tests/*/Fixture/*'
1616
- '*tests/*/Source/*'
1717
ignoreErrors:
18-
- "#^Parameter \\#1 \\$repositoryName of static method TYPO3\\\\CMS\\\\Core\\\\Utility\\\\ClassNamingUtility\\:\\:translateRepositoryNameToModelName\\(\\) expects class\\-string\\<TYPO3\\\\CMS\\\\Extbase\\\\Persistence\\\\RepositoryInterface\\>, class\\-string given\\.$#"
19-
- "#^Parameter \\#1 \\$repositoryName of static method TYPO3\\\\CMS\\\\Core\\\\Utility\\\\ClassNamingUtility\\:\\:translateRepositoryNameToModelName\\(\\) expects class\\-string\\<TYPO3\\\\CMS\\\\Extbase\\\\Persistence\\\\RepositoryInterface\\>, string given\\.$#"
2018
- "#^Call to static method resolve\\(\\) on an unknown class TYPO3\\\\CMS\\\\Extbase\\\\Validation\\\\ValidatorClassNameResolver\\.$#"
2119
-
2220
message: '#^Class TYPO3\\CMS\\Core\\Context\\[a-zA-Z]* not found\.#'
23-
path: %currentWorkingDirectory%/src/Type/ContextDynamicReturnTypeExtension.php
21+
path: src/Type/ContextDynamicReturnTypeExtension.php
2422
-
2523
message: "#^Calling PHPStan\\\\Reflection\\\\InitializerExprTypeResolver\\:\\:getClassConstFetchType\\(\\) is not covered by backward compatibility promise\\. The method might change in a minor PHPStan version\\.$#"
2624
count: 1
27-
path: %currentWorkingDirectory%/src/Rule/ValidatorResolverOptionsRule.php
25+
path: src/Rule/ValidatorResolverOptionsRule.php
26+
-
27+
message: "#^Class TYPO3\\\\CMS\\\\Extbase\\\\Validation\\\\ValidatorClassNameResolvers not found\\.$#"
28+
count: 1
29+
path: src/Service/ValidatorClassNameResolver.php

src/Service/ValidatorClassNameResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ public function resolve(Type $type): ?string
2525
return null;
2626
}
2727

28-
if ($this->reflectionProvider->hasClass('TYPO3\CMS\Extbase\Validation\ValidatorClassNameResolver')) {
28+
if ($this->reflectionProvider->hasClass(\TYPO3\CMS\Extbase\Validation\ValidatorClassNameResolver::class)) {
2929
return \TYPO3\CMS\Extbase\Validation\ValidatorClassNameResolver::resolve($type->getValue());
3030
}
3131

32-
if ( ! $this->reflectionProvider->hasClass('TYPO3\CMS\Extbase\Validation\ValidatorResolver')) {
32+
if ( ! $this->reflectionProvider->hasClass(ValidatorResolver::class)) {
3333
return null;
3434
}
3535

0 commit comments

Comments
 (0)