yvoyer /
php-state
| 1 | <?php declare(strict_types=1); |
||
|
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
| 2 | |||
| 3 | namespace Star\Component\State\Port\PHPStan; |
||
| 4 | |||
| 5 | use PhpParser\Node\Expr\MethodCall; |
||
| 6 | use PHPStan\Analyser\Scope; |
||
|
0 ignored issues
–
show
The type
PHPStan\Analyser\Scope was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 7 | use PHPStan\Reflection\MethodReflection; |
||
|
0 ignored issues
–
show
The type
PHPStan\Reflection\MethodReflection was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 8 | use PHPStan\Type; |
||
| 9 | use Star\Component\State\StateMetadata; |
||
| 10 | |||
| 11 | final class StateMetadataExtension implements Type\DynamicMethodReturnTypeExtension |
||
|
0 ignored issues
–
show
The type
PHPStan\Type\DynamicMethodReturnTypeExtension was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 12 | { |
||
|
0 ignored issues
–
show
|
|||
| 13 | public function getClass(): string |
||
|
0 ignored issues
–
show
|
|||
| 14 | { |
||
|
0 ignored issues
–
show
|
|||
| 15 | return StateMetadata::class; |
||
| 16 | } |
||
|
0 ignored issues
–
show
|
|||
| 17 | |||
| 18 | public function isMethodSupported(MethodReflection $methodReflection): bool |
||
|
0 ignored issues
–
show
|
|||
| 19 | { |
||
|
0 ignored issues
–
show
|
|||
| 20 | return $methodReflection->getName() === 'transit'; |
||
| 21 | } |
||
|
0 ignored issues
–
show
|
|||
| 22 | |||
| 23 | public function getTypeFromMethodCall( |
||
|
0 ignored issues
–
show
|
|||
| 24 | MethodReflection $methodReflection, |
||
| 25 | MethodCall $methodCall, |
||
| 26 | Scope $scope |
||
| 27 | ): Type\Type { |
||
|
0 ignored issues
–
show
The type
PHPStan\Type\Type was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 28 | $reflection = $scope->getClassReflection(); |
||
| 29 | if ($reflection && $reflection->isSubclassOf(StateMetadata::class)) { |
||
| 30 | return new Type\ObjectType($reflection->getName()); |
||
|
0 ignored issues
–
show
The type
PHPStan\Type\ObjectType was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 31 | } |
||
| 32 | |||
| 33 | return new Type\ClassStringType(); |
||
|
0 ignored issues
–
show
The type
PHPStan\Type\ClassStringType was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 34 | } |
||
|
0 ignored issues
–
show
|
|||
| 35 | } |
||
|
0 ignored issues
–
show
|
|||
| 36 |