1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Document lowercase-string when possible (#4904)

* document lowercase-string

* fix missing strtolower
This commit is contained in:
orklah 2020-12-29 12:42:12 +01:00 committed by Daniil Gentili
parent 8908877aa0
commit bc900b2dd6
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
113 changed files with 227 additions and 152 deletions

View File

@ -4,22 +4,22 @@ namespace Psalm;
class Aliases
{
/**
* @var array<string, string>
* @var array<lowercase-string, string>
*/
public $uses;
/**
* @var array<string, string>
* @var array<lowercase-string, string>
*/
public $uses_flipped;
/**
* @var array<string, non-empty-string>
* @var array<lowercase-string, non-empty-string>
*/
public $functions;
/**
* @var array<string, string>
* @var array<lowercase-string, string>
*/
public $functions_flipped;
@ -46,11 +46,11 @@ class Aliases
public $uses_end;
/**
* @param array<string, string> $uses
* @param array<string, non-empty-string> $functions
* @param array<lowercase-string, string> $uses
* @param array<lowercase-string, non-empty-string> $functions
* @param array<string, string> $constants
* @param array<string, string> $uses_flipped
* @param array<string, string> $functions_flipped
* @param array<lowercase-string, string> $uses_flipped
* @param array<lowercase-string, string> $functions_flipped
* @param array<string, string> $constants_flipped
*/
public function __construct(

View File

@ -51,7 +51,7 @@ class Codebase
* A map of fully-qualified use declarations to the files
* that reference them (keyed by filename)
*
* @var array<string, array<int, \Psalm\CodeLocation>>
* @var array<lowercase-string, array<int, \Psalm\CodeLocation>>
*/
public $use_referencing_locations = [];
@ -59,7 +59,7 @@ class Codebase
* A map of file names to the classes that they contain explicit references to
* used in collaboration with use_referencing_locations
*
* @var array<string, array<string, bool>>
* @var array<string, array<lowercase-string, bool>>
*/
public $use_referencing_files = [];
@ -235,7 +235,7 @@ class Codebase
public $classes_to_move = [];
/**
* @var array<string, string>
* @var array<lowercase-string, string>
*/
public $call_transforms = [];

View File

@ -397,7 +397,7 @@ class Config
public $ensure_array_int_offsets_exist = false;
/**
* @var array<string, bool>
* @var array<lowercase-string, bool>
*/
public $forbidden_functions = [];
@ -591,7 +591,7 @@ class Config
/**
* Custom functions that always exit
*
* @var array<string, bool>
* @var array<lowercase-string, bool>
*/
public $exit_functions = [];

View File

@ -142,7 +142,7 @@ class Context
/**
* A list of classes checked with class_exists
*
* @var array<string,bool>
* @var array<lowercase-string,bool>
*/
public $phantom_classes = [];

View File

@ -11,27 +11,27 @@ use function strtolower;
trait CanAlias
{
/**
* @var array<string, string>
* @var array<lowercase-string, string>
*/
private $aliased_classes = [];
/**
* @var array<string, CodeLocation>
* @var array<lowercase-string, CodeLocation>
*/
private $aliased_class_locations = [];
/**
* @var array<string, string>
* @var array<lowercase-string, string>
*/
private $aliased_classes_flipped = [];
/**
* @var array<string, string>
* @var array<lowercase-string, string>
*/
private $aliased_classes_flipped_replaceable = [];
/**
* @var array<string, non-empty-string>
* @var array<lowercase-string, non-empty-string>
*/
private $aliased_functions = [];
@ -132,7 +132,7 @@ trait CanAlias
}
/**
* @return array<string, string>
* @return array<lowercase-string, string>
*/
public function getAliasedClassesFlipped(): array
{

View File

@ -421,7 +421,7 @@ abstract class ClassLikeAnalyzer extends SourceAnalyzer
}
/**
* @return array<string, string>
* @return array<lowercase-string, string>
*/
public function getAliasedClassesFlipped(): array
{

View File

@ -67,7 +67,7 @@ class FileAnalyzer extends SourceAnalyzer
private $namespace_aliased_classes = [];
/**
* @var array<string, array<string, string>>
* @var array<string, array<lowercase-string, string>>
*/
private $namespace_aliased_classes_flipped = [];
@ -77,7 +77,7 @@ class FileAnalyzer extends SourceAnalyzer
private $namespace_aliased_classes_flipped_replaceable = [];
/**
* @var array<string, InterfaceAnalyzer>
* @var array<lowercase-string, InterfaceAnalyzer>
*/
public $interface_analyzers_to_analyze = [];
@ -351,7 +351,7 @@ class FileAnalyzer extends SourceAnalyzer
$fq_class_name = $class_analyzer->getFQCLN();
$this->interface_analyzers_to_analyze[$fq_class_name] = $class_analyzer;
$this->interface_analyzers_to_analyze[strtolower($fq_class_name)] = $class_analyzer;
}
}
@ -448,7 +448,7 @@ class FileAnalyzer extends SourceAnalyzer
}
/**
* @return array<string, string>
* @return array<lowercase-string, string>
*/
public function getAliasedClassesFlipped(?string $namespace_name = null): array
{

View File

@ -1765,7 +1765,7 @@ abstract class FunctionLikeAnalyzer extends SourceAnalyzer
}
/**
* @return array<string, string>
* @return array<lowercase-string, string>
*/
public function getAliasedClassesFlipped(): array
{

View File

@ -61,11 +61,12 @@ class ScopeAnalyzer
}
/**
* @param array<PhpParser\Node> $stmts
* @param bool $return_is_exit Exit and Throw statements are treated differently from return if this is false
* @param list<'loop'|'switch'> $break_types
* @param array<PhpParser\Node> $stmts
* @param array<lowercase-string, bool> $exit_functions
* @param list<'loop'|'switch'> $break_types
* @param bool $return_is_exit Exit and Throw statements are treated differently from return if this is false
*
* @return list<self::ACTION_*>
* @return list<self::ACTION_*>
*/
public static function getControlActions(
array $stmts,

View File

@ -27,7 +27,7 @@ abstract class SourceAnalyzer implements StatementsSource
}
/**
* @return array<string, string>
* @return array<lowercase-string, string>
*/
public function getAliasedClassesFlipped(): array
{

View File

@ -41,7 +41,7 @@ class TraitAnalyzer extends ClassLikeAnalyzer
}
/**
* @return array<string, string>
* @return array<lowercase-string, string>
*/
public function getAliasedClassesFlipped(): array
{

View File

@ -93,7 +93,7 @@ class ClassLikes
private $existing_traits = [];
/**
* @var array<string, string>
* @var array<lowercase-string, string>
*/
private $classlike_aliases = [];
@ -557,7 +557,7 @@ class ClassLikes
}
/**
* @return array<string, string> all interfaces extended by $interface_name
* @return array<lowercase-string, string> all interfaces extended by $interface_name
*/
public function getParentInterfaces(string $fq_interface_name): array
{

View File

@ -38,7 +38,7 @@ class InternalCallMapHandler
private static $loaded_php_minor_version = null;
/**
* @var array<array<int|string,string>>|null
* @var array<lowercase-string, array<int|string,string>>|null
*/
private static $call_map = null;

View File

@ -9,14 +9,14 @@ use function strtolower;
class PropertyMap
{
/**
* @var array<string, array<string, string>>|null
* @var array<lowercase-string, array<string, string>>|null
*/
private static $property_map;
/**
* Gets the method/function call map
*
* @return array<string, array<string, string>>
* @return array<lowercase-string, array<string, string>>
*/
public static function getPropertyMap(): array
{

View File

@ -53,7 +53,7 @@ use function substr;
* unchanged_signature_members:array<string, array<string, bool>>,
* diff_map:array<string, array<int, array{0:int, 1:int, 2:int, 3:int}>>,
* classlike_storage:array<string, \Psalm\Storage\ClassLikeStorage>,
* file_storage:array<string, \Psalm\Storage\FileStorage>,
* file_storage:array<lowercase-string, \Psalm\Storage\FileStorage>,
* new_file_content_hashes: array<string, string>,
* taint_data: ?TaintFlowGraph
* }

View File

@ -12,12 +12,12 @@ use function strtolower;
class FileProvider
{
/**
* @var array<string, string>
* @var array<lowercase-string, string>
*/
protected $temp_files = [];
/**
* @var array<string, string>
* @var array<lowercase-string, string>
*/
protected $open_files = [];

View File

@ -14,7 +14,7 @@ class FileStorageProvider
* A list of data useful to analyse files
* Storing this statically is much faster (at least in PHP 7.2.1)
*
* @var array<string, FileStorage>
* @var array<lowercase-string, FileStorage>
*/
private static $storage = [];
@ -81,7 +81,7 @@ class FileStorageProvider
}
/**
* @return array<string, FileStorage>
* @return array<lowercase-string, FileStorage>
*/
public function getAll(): array
{
@ -97,8 +97,7 @@ class FileStorageProvider
}
/**
* @param array<string, FileStorage> $more
*
* @param array<lowercase-string, FileStorage> $more
*/
public function addMore(array $more): void
{

View File

@ -10,7 +10,7 @@ class FunctionExistenceProvider
{
/**
* @var array<
* string,
* lowercase-string,
* array<\Closure(
* StatementsSource,
* string
@ -38,7 +38,7 @@ class FunctionExistenceProvider
}
/**
* /**
* @param lowercase-string $function_id
* @param \Closure(
* StatementsSource,
* string

View File

@ -12,7 +12,7 @@ class FunctionParamsProvider
{
/**
* @var array<
* string,
* lowercase-string,
* array<\Closure(
* StatementsSource,
* string,

View File

@ -13,7 +13,7 @@ class FunctionReturnTypeProvider
{
/**
* @var array<
* string,
* lowercase-string,
* array<\Closure(
* StatementsSource,
* non-empty-string,
@ -72,7 +72,7 @@ class FunctionReturnTypeProvider
}
/**
* /**
* @param lowercase-string $function_id
* @param \Closure(
* StatementsSource,
* non-empty-string,

View File

@ -11,7 +11,7 @@ class MethodExistenceProvider
{
/**
* @var array<
* string,
* lowercase-string,
* array<\Closure(
* string,
* string,

View File

@ -12,7 +12,7 @@ class MethodParamsProvider
{
/**
* @var array<
* string,
* lowercase-string,
* array<\Closure(
* string,
* string,

View File

@ -13,7 +13,7 @@ class MethodReturnTypeProvider
{
/**
* @var array<
* string,
* lowercase-string,
* array<\Closure(
* StatementsSource,
* string,

View File

@ -12,7 +12,7 @@ class MethodVisibilityProvider
{
/**
* @var array<
* string,
* lowercase-string,
* array<\Closure(
* StatementsSource,
* string,

View File

@ -12,7 +12,7 @@ class PropertyExistenceProvider
{
/**
* @var array<
* string,
* lowercase-string,
* array<\Closure(
* string,
* string,

View File

@ -12,7 +12,7 @@ class PropertyTypeProvider
{
/**
* @var array<
* string,
* lowercase-string,
* array<\Closure(
* string,
* string,

View File

@ -12,7 +12,7 @@ class PropertyVisibilityProvider
{
/**
* @var array<
* string,
* lowercase-string,
* array<\Closure(
* StatementsSource,
* string,

View File

@ -11,6 +11,9 @@ use Psalm\Type;
class ArrayChunkReturnTypeProvider implements \Psalm\Plugin\Hook\FunctionReturnTypeProviderInterface
{
/**
* @return array<lowercase-string>
*/
public static function getFunctionIds(): array
{
return ['array_chunk'];

View File

@ -9,6 +9,9 @@ use Psalm\Type;
class ArrayColumnReturnTypeProvider implements \Psalm\Plugin\Hook\FunctionReturnTypeProviderInterface
{
/**
* @return array<lowercase-string>
*/
public static function getFunctionIds() : array
{
return ['array_column'];

View File

@ -9,6 +9,9 @@ use Psalm\Type;
class ArrayFillReturnTypeProvider implements \Psalm\Plugin\Hook\FunctionReturnTypeProviderInterface
{
/**
* @return array<lowercase-string>
*/
public static function getFunctionIds() : array
{
return ['array_fill'];

View File

@ -18,6 +18,9 @@ use Psalm\Internal\Analyzer\Statements\Expression\CallAnalyzer;
class ArrayFilterReturnTypeProvider implements \Psalm\Plugin\Hook\FunctionReturnTypeProviderInterface
{
/**
* @return array<lowercase-string>
*/
public static function getFunctionIds() : array
{
return ['array_filter'];

View File

@ -17,6 +17,9 @@ use Psalm\Internal\Analyzer\Statements\Expression\AssertionFinder;
class ArrayMapReturnTypeProvider implements \Psalm\Plugin\Hook\FunctionReturnTypeProviderInterface
{
/**
* @return array<lowercase-string>
*/
public static function getFunctionIds() : array
{
return ['array_map'];

View File

@ -12,6 +12,9 @@ use Psalm\Type;
class ArrayMergeReturnTypeProvider implements \Psalm\Plugin\Hook\FunctionReturnTypeProviderInterface
{
/**
* @return array<lowercase-string>
*/
public static function getFunctionIds() : array
{
return ['array_merge', 'array_replace'];

View File

@ -11,6 +11,9 @@ use Psalm\Type;
class ArrayPadReturnTypeProvider implements \Psalm\Plugin\Hook\FunctionReturnTypeProviderInterface
{
/**
* @return array<lowercase-string>
*/
public static function getFunctionIds(): array
{
return ['array_pad'];

View File

@ -9,6 +9,9 @@ use Psalm\Type;
class ArrayPointerAdjustmentReturnTypeProvider implements \Psalm\Plugin\Hook\FunctionReturnTypeProviderInterface
{
/**
* @return array<lowercase-string>
*/
public static function getFunctionIds() : array
{
return ['current', 'next', 'prev', 'reset', 'end'];

View File

@ -9,6 +9,9 @@ use Psalm\Type;
class ArrayPopReturnTypeProvider implements \Psalm\Plugin\Hook\FunctionReturnTypeProviderInterface
{
/**
* @return array<lowercase-string>
*/
public static function getFunctionIds() : array
{
return ['array_pop', 'array_shift'];

View File

@ -9,6 +9,9 @@ use Psalm\Type;
class ArrayRandReturnTypeProvider implements \Psalm\Plugin\Hook\FunctionReturnTypeProviderInterface
{
/**
* @return array<lowercase-string>
*/
public static function getFunctionIds() : array
{
return ['array_rand'];

View File

@ -19,6 +19,9 @@ use function strtolower;
class ArrayReduceReturnTypeProvider implements \Psalm\Plugin\Hook\FunctionReturnTypeProviderInterface
{
/**
* @return array<lowercase-string>
*/
public static function getFunctionIds() : array
{
return ['array_reduce'];

View File

@ -9,6 +9,9 @@ use Psalm\Type;
class ArrayReverseReturnTypeProvider implements \Psalm\Plugin\Hook\FunctionReturnTypeProviderInterface
{
/**
* @return array<lowercase-string>
*/
public static function getFunctionIds() : array
{
return ['array_reverse'];

View File

@ -9,6 +9,9 @@ use Psalm\Type;
class ArraySliceReturnTypeProvider implements \Psalm\Plugin\Hook\FunctionReturnTypeProviderInterface
{
/**
* @return array<lowercase-string>
*/
public static function getFunctionIds() : array
{
return ['array_slice'];

View File

@ -9,6 +9,9 @@ use Psalm\Type;
class ArrayUniqueReturnTypeProvider implements \Psalm\Plugin\Hook\FunctionReturnTypeProviderInterface
{
/**
* @return array<lowercase-string>
*/
public static function getFunctionIds() : array
{
return ['array_unique'];

View File

@ -9,6 +9,9 @@ use Psalm\Type;
class ArrayValuesReturnTypeProvider implements \Psalm\Plugin\Hook\FunctionReturnTypeProviderInterface
{
/**
* @return array<lowercase-string>
*/
public static function getFunctionIds() : array
{
return ['array_values'];

View File

@ -9,6 +9,9 @@ use Psalm\Type;
class ExplodeReturnTypeProvider implements \Psalm\Plugin\Hook\FunctionReturnTypeProviderInterface
{
/**
* @return array<lowercase-string>
*/
public static function getFunctionIds() : array
{
return ['explode'];

View File

@ -10,6 +10,9 @@ use Psalm\Internal\DataFlow\DataFlowNode;
class FilterVarReturnTypeProvider implements \Psalm\Plugin\Hook\FunctionReturnTypeProviderInterface
{
/**
* @return array<lowercase-string>
*/
public static function getFunctionIds() : array
{
return ['filter_var'];

View File

@ -9,6 +9,9 @@ use Psalm\Type;
class FirstArgStringReturnTypeProvider implements \Psalm\Plugin\Hook\FunctionReturnTypeProviderInterface
{
/**
* @return array<lowercase-string>
*/
public static function getFunctionIds() : array
{
return [

View File

@ -9,6 +9,9 @@ use Psalm\Type;
class GetClassMethodsReturnTypeProvider implements \Psalm\Plugin\Hook\FunctionReturnTypeProviderInterface
{
/**
* @return array<lowercase-string>
*/
public static function getFunctionIds() : array
{
return [

View File

@ -9,6 +9,9 @@ use Psalm\Type;
class GetObjectVarsReturnTypeProvider implements \Psalm\Plugin\Hook\FunctionReturnTypeProviderInterface
{
/**
* @return array<lowercase-string>
*/
public static function getFunctionIds() : array
{
return [

View File

@ -9,6 +9,9 @@ use Psalm\Type;
class HexdecReturnTypeProvider implements \Psalm\Plugin\Hook\FunctionReturnTypeProviderInterface
{
/**
* @return array<lowercase-string>
*/
public static function getFunctionIds() : array
{
return ['hexdec'];

View File

@ -13,6 +13,9 @@ use Psalm\Type;
class IteratorToArrayReturnTypeProvider implements \Psalm\Plugin\Hook\FunctionReturnTypeProviderInterface
{
/**
* @return array<lowercase-string>
*/
public static function getFunctionIds() : array
{
return [

View File

@ -9,6 +9,9 @@ use Psalm\Type;
class MktimeReturnTypeProvider implements \Psalm\Plugin\Hook\FunctionReturnTypeProviderInterface
{
/**
* @return array<lowercase-string>
*/
public static function getFunctionIds() : array
{
return [

View File

@ -19,6 +19,9 @@ use Psalm\Type;
class ParseUrlReturnTypeProvider implements \Psalm\Plugin\Hook\FunctionReturnTypeProviderInterface
{
/**
* @return array<lowercase-string>
*/
public static function getFunctionIds() : array
{
return ['parse_url'];

View File

@ -10,6 +10,9 @@ use Psalm\Type;
class StrReplaceReturnTypeProvider implements \Psalm\Plugin\Hook\FunctionReturnTypeProviderInterface
{
/**
* @return array<lowercase-string>
*/
public static function getFunctionIds() : array
{
return [

View File

@ -10,6 +10,9 @@ use Psalm\Internal\DataFlow\DataFlowNode;
class StrTrReturnTypeProvider implements \Psalm\Plugin\Hook\FunctionReturnTypeProviderInterface
{
/**
* @return array<lowercase-string>
*/
public static function getFunctionIds() : array
{
return [
@ -41,7 +44,7 @@ class StrTrReturnTypeProvider implements \Psalm\Plugin\Hook\FunctionReturnTypePr
null,
$code_location
);
$statements_source->data_flow_graph->addNode($function_return_sink);
foreach ($call_args as $i => $_) {
$function_param_sink = DataFlowNode::getForMethodArgument(

View File

@ -11,6 +11,9 @@ use Psalm\Type;
class VersionCompareReturnTypeProvider implements \Psalm\Plugin\Hook\FunctionReturnTypeProviderInterface
{
/**
* @return array<lowercase-string>
*/
public static function getFunctionIds() : array
{
return ['version_compare'];

View File

@ -241,7 +241,7 @@ class PhpStormMetaScanner
&& $identifier->args
&& $identifier->args[0]->value instanceof PhpParser\Node\Scalar\LNumber
) {
$function_id = implode('\\', $identifier->name->parts);
$function_id = strtolower(implode('\\', $identifier->name->parts));
if ($map) {
$offset = $identifier->args[0]->value->value;

View File

@ -6,7 +6,7 @@ use Psalm\StatementsSource;
interface FunctionExistenceProviderInterface
{
/**
* @return array<string>
* @return array<lowercase-string>
*/
public static function getFunctionIds() : array;

View File

@ -9,7 +9,7 @@ use Psalm\StatementsSource;
interface FunctionParamsProviderInterface
{
/**
* @return array<string>
* @return array<lowercase-string>
*/
public static function getFunctionIds() : array;

View File

@ -10,7 +10,7 @@ use Psalm\Type;
interface FunctionReturnTypeProviderInterface
{
/**
* @return array<string>
* @return array<lowercase-string>
*/
public static function getFunctionIds() : array;

View File

@ -6,7 +6,7 @@ interface StatementsSource extends FileSource
public function getNamespace(): ?string;
/**
* @return array<string, string>
* @return array<lowercase-string, string>
*/
public function getAliasedClassesFlipped(): array;

View File

@ -13,17 +13,17 @@ class FileStorage
public $classlikes_in_file = [];
/**
* @var array<string>
* @var array<lowercase-string, string>
*/
public $referenced_classlikes = [];
/**
* @var array<string>
* @var array<lowercase-string, string>
*/
public $required_classes = [];
/**
* @var array<string>
* @var array<lowercase-string, string>
*/
public $required_interfaces = [];
@ -51,10 +51,10 @@ class FileStorage
/** @var array<string, string> */
public $declaring_constants = [];
/** @var array<string, string> */
/** @var array<lowercase-string, string> */
public $required_file_paths = [];
/** @var array<string, string> */
/** @var array<lowercase-string, string> */
public $required_by_file_paths = [];
/** @var bool */

View File

@ -101,7 +101,7 @@ abstract class Type
}
/**
* @param array<string, string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*
* @psalm-pure
*/

View File

@ -548,8 +548,7 @@ abstract class Atomic implements TypeNode
}
/**
* @param array<string, string> $aliased_classes
*
* @param array<lowercase-string, string> $aliased_classes
*/
public function toNamespacedString(
?string $namespace,
@ -561,7 +560,7 @@ abstract class Atomic implements TypeNode
}
/**
* @param array<string, string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
abstract public function toPhpString(
?string $namespace,

View File

@ -64,7 +64,7 @@ trait CallableTrait
}
/**
* @param array<string, string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
public function toNamespacedString(
?string $namespace,
@ -129,7 +129,7 @@ trait CallableTrait
}
/**
* @param array<string, string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
public function toPhpString(
?string $namespace,

View File

@ -61,7 +61,7 @@ trait GenericTrait
}
/**
* @param array<string, string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*
*/
public function toNamespacedString(

View File

@ -16,7 +16,7 @@ trait HasIntersectionTrait
public $extra_types;
/**
* @param array<string, string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
private function getNamespacedIntersectionTypes(
?string $namespace,

View File

@ -19,7 +19,7 @@ class TAnonymousClassInstance extends TNamedObject
}
/**
* @param array<string, string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*
*/
public function toNamespacedString(

View File

@ -38,7 +38,7 @@ class TArray extends \Psalm\Type\Atomic
}
/**
* @param array<string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
public function toPhpString(
?string $namespace,

View File

@ -17,7 +17,7 @@ class TArrayKey extends Scalar
}
/**
* @param array<string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
public function toPhpString(
?string $namespace,
@ -35,7 +35,7 @@ class TArrayKey extends Scalar
}
/**
* @param array<string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
public function toNamespacedString(
?string $namespace,

View File

@ -22,7 +22,7 @@ class TAssertionFalsy extends \Psalm\Type\Atomic
}
/**
* @param array<string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
public function toPhpString(
?string $namespace,

View File

@ -17,7 +17,7 @@ class TBool extends Scalar
}
/**
* @param array<string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
public function toPhpString(
?string $namespace,

View File

@ -14,7 +14,7 @@ class TCallable extends \Psalm\Type\Atomic
public $value;
/**
* @param array<string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
public function toPhpString(
?string $namespace,

View File

@ -17,7 +17,7 @@ class TCallableObject extends TObject
}
/**
* @param array<string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
public function toPhpString(
?string $namespace,

View File

@ -55,7 +55,7 @@ class TClassString extends TString
}
/**
* @param array<string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
public function toPhpString(
?string $namespace,
@ -68,8 +68,7 @@ class TClassString extends TString
}
/**
* @param array<string> $aliased_classes
*
* @param array<lowercase-string, string> $aliased_classes
*/
public function toNamespacedString(
?string $namespace,

View File

@ -76,7 +76,7 @@ class TClassStringMap extends \Psalm\Type\Atomic
}
/**
* @param array<string, string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*
*/
public function toNamespacedString(
@ -111,7 +111,7 @@ class TClassStringMap extends \Psalm\Type\Atomic
}
/**
* @param array<string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
public function toPhpString(
?string $namespace,

View File

@ -22,7 +22,7 @@ class TClosedResource extends \Psalm\Type\Atomic
}
/**
* @param array<string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
public function toPhpString(
?string $namespace,

View File

@ -96,7 +96,7 @@ class TConditional extends \Psalm\Type\Atomic
}
/**
* @param array<string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*
* @return null
*/
@ -111,7 +111,7 @@ class TConditional extends \Psalm\Type\Atomic
}
/**
* @param array<string, string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*
*/
public function toNamespacedString(

View File

@ -18,7 +18,7 @@ class TEmpty extends Scalar
}
/**
* @param array<string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
public function toPhpString(
?string $namespace,

View File

@ -17,7 +17,7 @@ class TFloat extends Scalar
}
/**
* @param array<string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
public function toPhpString(
?string $namespace,

View File

@ -54,7 +54,7 @@ class TGenericObject extends TNamedObject
}
/**
* @param array<string, string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
public function toPhpString(
?string $namespace,

View File

@ -17,7 +17,7 @@ class TInt extends Scalar
}
/**
* @param array<string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
public function toPhpString(
?string $namespace,

View File

@ -35,7 +35,7 @@ class TIntMask extends TInt
}
/**
* @param array<string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
public function toPhpString(
?string $namespace,
@ -48,7 +48,7 @@ class TIntMask extends TInt
}
/**
* @param array<string, string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*
*/
public function toNamespacedString(

View File

@ -30,7 +30,7 @@ class TIntMaskOf extends TInt
}
/**
* @param array<string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
public function toPhpString(
?string $namespace,
@ -43,8 +43,7 @@ class TIntMaskOf extends TInt
}
/**
* @param array<string, string> $aliased_classes
*
* @param array<lowercase-string, string> $aliased_classes
*/
public function toNamespacedString(
?string $namespace,

View File

@ -79,7 +79,7 @@ class TIterable extends Atomic
}
/**
* @param array<string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
public function toPhpString(
?string $namespace,

View File

@ -40,7 +40,7 @@ class TKeyOfClassConstant extends Scalar
}
/**
* @param array<string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
public function toPhpString(
?string $namespace,
@ -58,8 +58,7 @@ class TKeyOfClassConstant extends Scalar
}
/**
* @param array<string> $aliased_classes
*
* @param array<lowercase-string, string> $aliased_classes
*/
public function toNamespacedString(
?string $namespace,

View File

@ -132,7 +132,7 @@ class TKeyedArray extends \Psalm\Type\Atomic
}
/**
* @param array<string, string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*
*/
public function toNamespacedString(
@ -183,7 +183,7 @@ class TKeyedArray extends \Psalm\Type\Atomic
}
/**
* @param array<string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
public function toPhpString(
?string $namespace,

View File

@ -52,7 +52,7 @@ class TList extends \Psalm\Type\Atomic
}
/**
* @param array<string, string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*
*/
public function toNamespacedString(
@ -84,7 +84,7 @@ class TList extends \Psalm\Type\Atomic
}
/**
* @param array<string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
public function toPhpString(
?string $namespace,

View File

@ -31,7 +31,7 @@ class TLiteralClassString extends TLiteralString
}
/**
* @param array<string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
public function toPhpString(
?string $namespace,
@ -59,8 +59,7 @@ class TLiteralClassString extends TLiteralString
}
/**
* @param array<string> $aliased_classes
*
* @param array<lowercase-string, string> $aliased_classes
*/
public function toNamespacedString(
?string $namespace,

View File

@ -25,7 +25,7 @@ class TLiteralFloat extends TFloat
}
/**
* @param array<string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
public function toPhpString(
?string $namespace,
@ -38,7 +38,7 @@ class TLiteralFloat extends TFloat
}
/**
* @param array<string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*
*/
public function toNamespacedString(

View File

@ -25,7 +25,7 @@ class TLiteralInt extends TInt
}
/**
* @param array<string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
public function toPhpString(
?string $namespace,
@ -38,7 +38,7 @@ class TLiteralInt extends TInt
}
/**
* @param array<string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*
*/
public function toNamespacedString(

View File

@ -39,7 +39,7 @@ class TLiteralString extends TString
}
/**
* @param array<string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
public function toPhpString(
?string $namespace,
@ -52,7 +52,7 @@ class TLiteralString extends TString
}
/**
* @param array<string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*
*/
public function toNamespacedString(

View File

@ -25,7 +25,7 @@ class TMixed extends \Psalm\Type\Atomic
}
/**
* @param array<string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
public function toPhpString(
?string $namespace,

View File

@ -71,7 +71,7 @@ class TNamedObject extends Atomic
}
/**
* @param array<string, string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*
*/
public function toNamespacedString(
@ -102,7 +102,7 @@ class TNamedObject extends Atomic
}
/**
* @param array<string, string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
public function toPhpString(
?string $namespace,

View File

@ -18,7 +18,7 @@ class TNever extends \Psalm\Type\Atomic
}
/**
* @param array<string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
public function toPhpString(
?string $namespace,

View File

@ -17,7 +17,7 @@ class TNull extends \Psalm\Type\Atomic
}
/**
* @param array<string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
public function toPhpString(
?string $namespace,

View File

@ -17,7 +17,7 @@ class TNumeric extends Scalar
}
/**
* @param array<string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
public function toPhpString(
?string $namespace,

View File

@ -17,7 +17,7 @@ class TObject extends \Psalm\Type\Atomic
}
/**
* @param array<string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
public function toPhpString(
?string $namespace,

View File

@ -121,7 +121,7 @@ class TObjectWithProperties extends TObject
}
/**
* @param array<string, string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*
*/
public function toNamespacedString(
@ -165,7 +165,7 @@ class TObjectWithProperties extends TObject
}
/**
* @param array<string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
public function toPhpString(
?string $namespace,

View File

@ -25,7 +25,7 @@ class TPositiveInt extends TInt
}
/**
* @param array<string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*
*/
public function toNamespacedString(

View File

@ -17,7 +17,7 @@ class TResource extends \Psalm\Type\Atomic
}
/**
* @param array<string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
public function toPhpString(
?string $namespace,

View File

@ -18,7 +18,7 @@ class TScalar extends Scalar
}
/**
* @param array<string> $aliased_classes
* @param array<lowercase-string, string> $aliased_classes
*/
public function toPhpString(
?string $namespace,

Some files were not shown because too many files have changed in this diff Show More