Skip to content
Permalink
Browse files

Remove code from links

  • Loading branch information...
muglug committed Aug 17, 2019
1 parent fafb7ee commit 88e8f105e0ef88c7275dae41f7f8ddf2db5ef38c
Showing with 23 additions and 23 deletions.
  1. +23 −23 docs/annotating_code/type_syntax/atomic_types.md
@@ -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.

0 comments on commit 88e8f10

Please sign in to comment.
You can’t perform that action at this time.