Hans-Helge Buerger
8203150a5f
Fix link to template annotations ( #4125 )
2020-09-04 16:26:52 -04:00
Markus Staab
fc50dd3acb
Docs: added more string types ( #4080 )
2020-08-28 14:37:46 -04:00
Markus Staab
58141d44ed
Docs: added callable-array ( #4079 )
...
* Docs: added callable-array
* Update array_types.md
* Add non-empty-array
2020-08-28 14:37:28 -04:00
Markus Staab
bb1d257aff
docs: added positive integer ( #4078 )
...
* docs: added positive integer
* added to toc
2020-08-28 12:55:50 -04:00
Bruce Weirdan
d5055ea1d4
Removed obsolete documenation ( #3982 )
...
`allowCoercionFromStringToClassConst` was removed in 3.0 and never
worked since.
Refs vimeo/psalm#3976
2020-08-11 07:30:09 -04:00
Barney Laurance
7ed5e32840
Update docs on @psalm-internal as @internal no-longer has to be used at same time ( #3911 )
...
See #42ad366dc8ccaf34
2020-07-30 14:09:14 -04:00
Olle Härstedt
948be8243e
Add @method to docs ( #3595 )
...
* Add @method
* Fix links
2020-06-16 22:20:34 -04:00
Matthew Brown
aff2805794
Add annotations ref
2020-06-16 20:55:39 -04:00
wnbsmart
07c7c30ad6
Pass unused created variable ( #3560 )
2020-06-10 17:28:04 -04:00
feek
a83a6cf3f7
doc --> dog ( #3330 )
2020-05-10 11:19:54 -04:00
Anton Ukhanev
5b35e022f6
Fix link ( #3304 )
...
This fixes link to PHPDoc's type syntax documentation. It appears that they have added an extra URL segment to represent the doc version.
2020-05-06 09:55:57 -04:00
feek
c2a693a034
chore: < > ( #3261 )
2020-04-28 19:42:06 -04:00
Pierre Grimaud
e7990390a6
Fix typos ( #3255 )
2020-04-28 09:17:31 -04:00
Brown
c79d64f0c4
A little more unquoting
2020-04-27 23:17:10 -04:00
Brown
11e1adaa99
Fix some escaping
2020-04-27 23:13:43 -04:00
Šimon Podlipský
2a7be233bb
Remove dead link ( #3112 )
...
* Remove dead link
* Fix typos
2020-04-09 08:14:43 -04:00
m0003r
28f740fddb
@psalm-trace is now a specific low-level issue, because plain debug print breaks structured output (after #3080 ) ( #3106 )
2020-04-08 21:03:05 -04:00
lhchavez
be87bb7300
Support intersection types for object-like arrays ( #3064 )
...
This change allows expressing the intersection of multiple object-like
arrays. The resulting type will contain the (merged via intersection)
properties of all the object-like arrays involved in the intersection.
This should allow to express the resulting type of an `array_merge()`
operation, which is tricky to do in the context of a templated type.
2020-04-08 09:35:53 -04:00
m0003r
11edb22c72
Implement @psalm-trace annotation, fixes #3079 ( #3080 )
2020-04-06 12:42:22 -04:00
Matthew Brown
6ac6c54a34
Fix defaults
2020-04-06 09:28:49 -04:00
Matthew Brown
476b248a1e
Delete docblock_type_syntax.md
2020-04-02 09:41:12 -04:00
Matthew Brown
500b4eb13b
Add content from redundant page
2020-04-02 09:40:17 -04:00
Matthew Brown
194f02507d
Allow conditional types to reference class constants
2020-03-29 13:37:37 -04:00
Matthew Brown
9055c4a79b
Add documentation for conditional types
...
Fixes #3005
2020-03-29 11:14:03 -04:00
iggyvolz
94b246b987
Initial commit ( #3013 )
2020-03-24 18:32:57 -04:00
Matthew Brown
476480ef41
Add opening <?php tags to all PHP snippets
2020-03-21 09:24:41 -04:00
Matthew Brown
c3e94b3e54
Separate formatting
...
Fixes #2988
2020-03-18 19:15:44 -04:00
Matthew Brown
b2574ad1a3
Add weird break
2020-03-18 19:14:04 -04:00
Matthew Brown
da456b62db
Add more whitespace
2020-03-18 19:12:02 -04:00
Claas Augner
a5f581e294
Fix #2984 - Document Generator type syntax ( #2986 )
2020-03-18 09:28:32 -04:00
Alexey Kopytko
9e64670e42
Add hyperlink in templated_annotations.md ( #2976 )
2020-03-15 23:28:37 -04:00
Matthew Brown
106102d0a5
Add line break
2020-02-23 00:41:19 -05:00
Roland Franssen
a7355fa734
Update typing_in_psalm.md
2020-02-07 10:55:44 -05:00
Matthew Brown
b3f6b56f9c
Add support for @psalm-readonly-allow-private-mutation
2020-02-02 15:56:08 -05:00
Matthew Brown
93c613b5a3
Adjusted for actual implementation
2020-02-02 15:39:24 -05:00
Christian Kolb
fd6cdf61c7
Update naming to mutate
2020-02-02 15:39:24 -05:00
Christian Kolb
143756800f
Add documentation for new @psalm-private-set annotation
2020-02-02 15:39:24 -05:00
HenkPoley
72b5b22474
Mention how to annotate psalm specific annotations ( #2648 )
...
* Mention how to annotate psalm specific annotations
Might be nice to mention how to annotate psalm specific annotations, without trampling over PhpDoc annotations.
* Fix key type
Co-authored-by: Matthew Brown <github@muglug.com>
2020-01-17 08:47:21 -05:00
Jacob Dreesen
26bf183430
Fix typos ( #2639 )
2020-01-16 08:36:18 -05:00
Pavel Batečko
87debfe954
Support suppressing all issues with @psalm-suppress all ( #2584 )
...
* Support suppressing all issues using @psalm-suppress all
* Document @psalm-suppress all
2020-01-12 10:38:32 -05:00
LeSuisse
88c496121e
Add an example on how to use @psalm-immutable
annotation with an anonymous class ( #2544 )
...
Related to #2543
2020-01-02 14:09:11 -05:00
Markus Podar
270a99f57d
Add sample for optional keys in array shapes ( #2538 )
2020-01-01 13:53:32 -05:00
Ruud Kamphuis
ca31931a53
Explain bool assertions ( #2528 )
2019-12-29 09:22:09 -05:00
Matthew Brown
a2a2d8cd97
Delimit quotes
2019-12-21 14:15:02 +00:00
Grégoire Paris
cde7c80786
Spell "covariant" properly ( #2487 )
2019-12-19 17:49:51 +00:00
Matthew Brown
c2464ebb71
fix link
2019-12-19 10:41:15 +00:00
Matthew Brown
7b6061efe3
Add section on template covariance
2019-12-19 10:36:14 +00:00
Valentin Udaltsov
bb52c4ce75
Update callable_types.md ( #2482 )
...
Spread operator must be a suffix in callables
2019-12-19 00:28:04 +00:00
ADmad
065653c58f
Fix param name in example ( #2317 )
2019-11-09 16:26:06 -05:00
Matthew Brown
4ee037923a
add link to lists
2019-10-11 09:58:34 -04:00
Matthew Brown
f25fe29c73
Add documentation for lists
2019-10-11 09:56:46 -04:00
Jacob Dreesen
34d98f9f42
Fix description of @psalm-external-mutation-free ( #2110 )
2019-09-09 14:52:30 -04:00
Brown
56c884845f
Static methods inside @psalm-immutable class should be permitted
...
Fixes #2109
2019-09-09 10:38:55 -04:00
Matthew Brown
f8b8f35c03
Add docs for @psalm-pure
2019-09-08 15:25:12 -04:00
Matthew Brown
5d08c47e4b
Add docs for immutable ideas
2019-09-08 15:21:30 -04:00
Matthew Brown
5c1b4d5a2a
Fix underscore
2019-08-16 22:28:31 -04:00
Matthew Brown
476f9ae353
Fix type links
2019-08-16 22:27:58 -04:00
Matthew Brown
88e8f105e0
Remove code from links
2019-08-16 22:24:11 -04:00
Tyson Andre
220513c5f2
Fix typos with codespell ( #1870 )
2019-06-28 13:59:09 -04:00
Brown
6a95aeb7e2
Fix 404
2019-06-27 17:35:24 -04:00
Brown
0d3f5af18c
Break out docblock_type_syntax.md into separate files
2019-06-27 17:00:26 -04:00
Matthew Brown
f06cd85ad0
Fix link
2019-06-19 14:21:07 -04:00
Matthew Brown
51e31ba9c9
Add separate file for adding_assertions
2019-06-19 14:19:40 -04:00
Matthew Brown
95fc208ce3
Break out assertion syntax into separate file
2019-06-19 14:19:14 -04:00
Matthew Brown
d0e84f1b88
remove slash
2019-06-19 01:39:11 -04:00
Matthew Brown
9ad6e7c024
Remove a word
2019-06-19 01:24:14 -04:00
Matthew Brown
0cd8e71368
Fix formatting
2019-06-19 01:23:49 -04:00
Matthew Brown
a46dddde4b
Add newline
2019-06-19 01:21:29 -04:00
Matthew Brown
74a96a95d0
Add assertion syntax docs ( #1810 )
...
* Create assertion_syntax.md
* Add more
* Add more details
* Add link to assertions
2019-06-19 01:09:46 -04:00
Matthew Brown
305c40839a
Remove phpdoc note
2019-06-09 18:05:28 -04:00
Matthew Brown
d4186e4530
Add PHPDoc note
2019-06-09 18:04:00 -04:00
Matthew Brown
bbacba4acf
Improve atomic type intro
2019-06-09 17:41:06 -04:00
Matthew Brown
0443bfc41e
Add better preamble about atomic types
2019-06-09 17:37:29 -04:00
Matthew Brown
28b0895ffb
Push union type info to bottom
2019-06-09 17:35:38 -04:00
Matthew Brown
f898bb1f2c
Remove probably-confusing explanation of union types
2019-06-09 17:31:26 -04:00
Matthew Brown
30b1b0a65c
Indent other types
2019-06-09 17:20:13 -04:00
Matthew Brown
71a184312a
Improve punctuation
2019-06-09 15:48:08 -04:00
Matthew Brown
5d47dc5769
Add more obvious examples
2019-06-09 15:43:52 -04:00
Matthew Brown
c3d4acf6fe
Add link
2019-06-09 15:34:19 -04:00
Matthew Brown
61102998d1
Organise atomic type page better
2019-06-09 15:32:26 -04:00
Matthew Brown
bc49787d69
Add more information about class-string
2019-06-09 15:22:26 -04:00
Matthew Brown
9c18dfed43
Fix char
2019-06-09 15:20:15 -04:00
Matthew Brown
2fd24c4765
Fix underscores
2019-06-09 15:18:06 -04:00
Matthew Brown
344164816f
Break apart atomic type docs, adding listing
2019-06-09 15:16:55 -04:00
Matthew Brown
5592335a7c
Remove "
2019-06-09 09:16:43 -04:00
Matthew Brown
017ddd590a
Add better English
2019-06-09 01:41:31 -04:00
Matthew Brown
7a1a728cee
Move docs into subfolders
2019-06-09 00:54:13 -04:00