Файловый менеджер - Редактировать - /opt/cpanel/ea-wappspector/vendor/rector/rector/src/PHPStanStaticTypeMapper/TypeMapper/CallableTypeMapper.php
Ðазад
<?php declare (strict_types=1); namespace Rector\PHPStanStaticTypeMapper\TypeMapper; use PhpParser\Node; use PhpParser\Node\Identifier; use PHPStan\PhpDocParser\Ast\Type\TypeNode; use PHPStan\Type\CallableType; use PHPStan\Type\ClosureType; use PHPStan\Type\Type; use Rector\PHPStanStaticTypeMapper\Contract\TypeMapperInterface; use Rector\PHPStanStaticTypeMapper\Enum\TypeKind; /** * @implements TypeMapperInterface<CallableType> */ final class CallableTypeMapper implements TypeMapperInterface { public function getNodeClass() : string { return CallableType::class; } /** * @param CallableType $type */ public function mapToPHPStanPhpDocTypeNode(Type $type) : TypeNode { return $type->toPhpDocNode(); } /** * @param TypeKind::* $typeKind * @param CallableType|ClosureType $type */ public function mapToPhpParserNode(Type $type, string $typeKind) : ?Node { if ($typeKind === TypeKind::PROPERTY) { return null; } return new Identifier('callable'); } }
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка