Matthew Brown
766b1b0384
Add reference, not type
...
Ref #1835
2019-06-23 09:10:43 -04:00
Matthew Brown
37ffd6dad6
Fix #1832 - add references to docblock types
2019-06-23 08:47:49 -04:00
Matthew Brown
4735955829
Fix #1835 - move reference generation before argument analysis
2019-06-23 08:08:00 -04:00
Matthew Brown
ec104be6e2
Add offset to atomic type
...
Ref #1832
2019-06-23 00:19:41 -04:00
Matthew Brown
31c8a2e4d7
Add offsets to type tokenisation
...
Ref #1832
2019-06-22 23:30:40 -04:00
Ilija Tovilo
78588ced16
Only add newlines to function signature on hover ( #1834 )
...
Most editors do not render the newlines for autocompletions which makes
things look worse.
2019-06-22 15:59:16 -04:00
Ilija Tovilo
caca3e52c9
Display function signature on multiple lines when it has parameters ( #1833 )
2019-06-22 13:07:56 -04:00
Brown
aa6677a177
Add autocompletion for some classes
...
Ref #1822
2019-06-21 17:10:35 -04:00
Ilija Tovilo
c74e196e3c
Improve autocompletion by using CompletionItem::$detail for type info ( #1831 )
2019-06-21 17:09:01 -04:00
Matthew Brown
2a4072b1be
Resolve docblock self refs as soon as possible
...
Fixes #1827
2019-06-20 23:38:10 -04:00
Brown
7b4dbb1c85
Fix #1826 - don’t allow mixed unions when combining with object-like array
2019-06-20 20:13:36 -04:00
Brown
ac06ea659e
Fix #1825 - improve behaviour of callable reconciliation
2019-06-20 19:46:42 -04:00
Brown
db38270a6a
Clone closure param types before combining
2019-06-20 19:09:10 -04:00
Brown
c93c2a4843
Don’t modify AST when analyzing array_filter
2019-06-20 14:14:48 -04:00
Matthew Brown
18554b6d2b
Fix link to issues
2019-06-20 10:57:45 -04:00
Brown
a5a9da6e50
Fix #1818 - handle intersection when expanding template
2019-06-20 10:09:03 -04:00
Ivan
5bb28cc493
fix typo ( #1819 )
2019-06-20 09:05:22 -04:00
Matthew Brown
5b6c077c0b
Fix dupe test name
2019-06-20 08:59:04 -04:00
Matthew Brown
d845cdf0c5
Fix #1458 by making instanceof static same as === static
2019-06-20 08:37:57 -04:00
Matthew Brown
4823e35f8e
Add rename namespace command
2019-06-19 19:49:42 -04:00
Brown
84e002e9a7
Fix #1816 - convert array_filter strings to full closures
2019-06-19 17:42:42 -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
Brown
bdf54ae1fa
Fix #1814 - warn about deprected ::class access
2019-06-19 12:42:51 -04:00
Brown
0246f600f4
Fix #1813 - convert object&Foo into Foo after template resolution
2019-06-19 12:00:19 -04:00
Matthew Brown
7155ed4e06
Fix #1811 - improve expected argument count
2019-06-19 09:05:07 -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
Brown
b12f05185a
Fix #1799 - support trailing commas in object-like docblock types
2019-06-18 17:47:06 -04:00
Brown
1bdd444ce6
Fix #1802 - ensure directory exists before moving file
2019-06-18 17:16:10 -04:00
Brown
10613192c9
Fix #1803 - complain about DeprecatedClass when using its constants
2019-06-18 16:21:04 -04:00
Barney Laurance
22ae114baa
Add PHPCS job to CircleCI workflow ( #1807 )
2019-06-17 21:17:44 -04:00
Matthew Lewinski
ac0a9d1514
Add a 'sonarqube' report type ( #1808 )
...
This JSON report is suitable for import into either SonarCloud or
SonarQube as Generic Issue Data (also known as an External Issue
Report).
https://docs.sonarqube.org/latest/analysis/generic-issue/
2019-06-17 21:17:09 -04:00
Brown
d573a3e48d
Use monochrome output when checkingg other projects
2019-06-17 17:00:38 -04:00
SignpostMarv
de881767a5
adding php & extension version info to baseline file to track changes in execution environment when baselines are added to vcs ( #1804 )
2019-06-17 16:43:54 -04:00
Barney Laurance
5ab5ec261c
Speed up CircleCI build ( #1805 )
...
* Use multiple threads to speed up psalm self analysis in CicleCi
* Use non-zero exit code when pcntl needed and not loaded
* Merge install and static analysis jobs in CircleCI
Saves about 20 seconds of 'spin up environment' time
2019-06-17 16:42:47 -04:00
Brown
250ef02687
Fix #1801 - add support for class_exists(Foo::class) too
2019-06-17 11:31:43 -04:00
Barney Laurance
4c57c67e2f
Add end to end tests that invoke psalm as a separate process ( #1798 )
...
* Add end to end tests that invoke psalm as a separate process
* Assert that psalm --init creates config file
2019-06-16 15:56:00 -04:00
Matthew Brown
a0866da88e
Strip extranous data
2019-06-16 12:45:02 -04:00
Matthew Brown
f46ccf0a5d
Strip text from end of @psalm-type
2019-06-16 12:39:07 -04:00
Matthew Brown
a553adb232
Fix test array spacing
2019-06-16 09:42:34 -04:00
Hugo Alliaume
37d719ed67
Fix readability for object-like types when running psalter
( #1708 )
...
* chore: update tests
* fix: better readability for object-like types
* test: add tests for nested array return type
* Improve spacing
2019-06-16 09:20:49 -04:00
Matthew Brown
7fc11af49e
Fix docblocks with @andrew-demb’s suggestions
2019-06-16 09:12:32 -04:00
Barney Laurance
f5ff9c2fa1
Use local xsd file for PHPunit xml
2019-06-16 09:04:56 -04:00
Barney Laurance
3d650edbc0
Use two threads for mutation testing
2019-06-16 09:04:56 -04:00
Barney Laurance
ea5e2dd75f
Only mutate covered lines of code when running mutation testing
2019-06-16 09:04:56 -04:00