mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Remove code from links
This commit is contained in:
parent
fafb7ee7e1
commit
88e8f105e0
@ -4,40 +4,40 @@ Atomic types are the basic building block of all type information used in Psalm.
|
||||
|
||||
## [Scalar types](scalar_types.md)
|
||||
|
||||
- [`int`](scalar_types.md)
|
||||
- [`float`](scalar_types.md)
|
||||
- [`string`](scalar_types.md)
|
||||
- [`class-string` and `class-string<Foo>`](scalar_types.md#class-string)
|
||||
- [`trait-string`](scalar_types.md#trait-string)
|
||||
- [`callable-string`](scalar_types.md#callable-string)
|
||||
- [`numeric-string`](scalar_types.md#numeric-string)
|
||||
- [`bool`](scalar_types.md)
|
||||
- [`array-key`](scalar_types.md#array-key)
|
||||
- [`numeric`](scalar_types.md#numeric)
|
||||
- [`scalar`](scalar_types.md#scalar)
|
||||
- [int](scalar_types.md)
|
||||
- [float](scalar_types.md)
|
||||
- [string](scalar_types.md)
|
||||
- [class-string and class-string<Foo>](scalar_types.md#class-string)
|
||||
- [trait-string](scalar_types.md#trait-string)
|
||||
- [callable-string](scalar_types.md#callable-string)
|
||||
- [numeric-string](scalar_types.md#numeric-string)
|
||||
- [bool](scalar_types.md)
|
||||
- [array-key](scalar_types.md#array-key)
|
||||
- [numeric](scalar_types.md#numeric)
|
||||
- [scalar](scalar_types.md#scalar)
|
||||
|
||||
## [Object types](object_types.md)
|
||||
|
||||
- [`object`](object_types.md)
|
||||
- [`Exception`, `Foo\MyClass` and `Foo\MyClass<Bar>`](object_types.md)
|
||||
- [object](object_types.md)
|
||||
- [Exception, Foo\MyClass and Foo\MyClass<Bar>](object_types.md)
|
||||
|
||||
## [Array types](array_types.md)
|
||||
|
||||
- [`array` & `non-empty-array`](array_types.md)
|
||||
- [`string[]`](array_types.md#phpdoc-syntax)
|
||||
- [`array<int, string>`](array_types.md#generic-arrays)
|
||||
- [`array{foo: int, bar: string}`](array_types.md#object-like-arrays)
|
||||
- [array & non-empty-array](array_types.md)
|
||||
- [string[]](array_types.md#phpdoc-syntax)
|
||||
- [array<int, string>](array_types.md#generic-arrays)
|
||||
- [array{foo: int, bar: string}](array_types.md#object-like-arrays)
|
||||
|
||||
## [Callable types](callable_types.md)
|
||||
|
||||
- [`callable`, `Closure` and `callable(Foo, Bar):Baz`](callable_types.md)
|
||||
- [callable, Closure and callable(Foo, Bar):Baz](callable_types.md)
|
||||
|
||||
## [Value types](value_types.md)
|
||||
|
||||
- [`null`](value_types.md#null)
|
||||
- [`true`, `false`](value_types.md#true-false)
|
||||
- [`6`, `7.0`, `"fourty-two"` and `'fourty two'`](value_types.md#some_string-4-314)
|
||||
- [`Foo\Bar::MY_SCALAR_CONST`](value_types.md#regular-class-constants)
|
||||
- [null](value_types.md#null)
|
||||
- [true, false](value_types.md#true-false)
|
||||
- [6, 7.0, "fourty-two" and 'fourty two'](value_types.md#some_string-4-314)
|
||||
- [Foo\Bar::MY_SCALAR_CONST](value_types.md#regular-class-constants)
|
||||
|
||||
## Magical types
|
||||
|
||||
@ -47,7 +47,7 @@ Atomic types are the basic building block of all type information used in Psalm.
|
||||
|
||||
## Other
|
||||
|
||||
- `iterable` - represents the [`iterable` pseudo-type](https://php.net/manual/en/language.types.iterable.php). Like arrays, iterables can have type parameters e.g. `iterable<string, Foo>`.
|
||||
- `iterable` - represents the [iterable pseudo-type](https://php.net/manual/en/language.types.iterable.php). Like arrays, iterables can have type parameters e.g. `iterable<string, Foo>`.
|
||||
- `void` - can be used in a return type when a function does not return a value.
|
||||
- `empty` - a type that represents a lack of type - not just a lack of type information (that's where [mixed](#mixed) is useful) but where there can be no type. A good example is the type of the empty array `[]`. Psalm types this as `array<empty, empty>`.
|
||||
- `mixed` represents a lack of type information. Psalm warns about mixed when the `totallyTyped` flag is turned on.
|
||||
|
Loading…
Reference in New Issue
Block a user