1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-05 21:19:03 +01:00
Commit Graph

8007 Commits

Author SHA1 Message Date
Matthew Brown
f46583d9d1
Update language_server.md 2021-01-29 11:47:27 +01:00
Adrien LUCAS
63ddceaf8e
Taint specialized calls even when not using a variable (#4940) 2021-01-29 11:47:27 +01:00
Matt Brown
e67315424f
Fix #4917 - allow array_reduce to be called with a single arg 2021-01-29 11:47:27 +01:00
orklah
c2c25ada84
add ArrayAccess to SimpleXmlElement (#4934)
* add ArrayAccess to SimpleXmlElement

* add test
2021-01-29 11:47:27 +01:00
orklah
d8fea8aabb
implement DTO for plugins (#4881)
* implement DTO for plugins

* introduce EventHandler + reintroduce legacy API for plugins
2021-01-29 11:47:27 +01:00
orklah
a17e403270
handle concatenation with int parts (#4938) 2021-01-29 11:47:27 +01:00
Matthew Brown
1d6338e13b
Add comments to AtomicMethodCallAnalyzer and suppress ComplexMethod 2021-01-29 11:47:27 +01:00
Matthew Brown
257f67d593
Break apart type combiner 2021-01-29 11:47:26 +01:00
Matthew Brown
237520eafc
Break out large chunk to simplify function 2021-01-29 11:47:26 +01:00
Matthew Brown
8696873cb9
Break out parent and implemented class checks 2021-01-29 11:47:26 +01:00
Matthew Brown
affaa5ea85
Uncomment erroneously-commented return 2021-01-29 11:47:26 +01:00
Matthew Brown
f00a53efd5
Break out large chunk 2021-01-29 11:47:26 +01:00
Matthew Brown
0e1ef2e096
Ignore recently-deleted files for scanning 2021-01-29 11:47:25 +01:00
orklah
e949ed68ac
Infer result of modulo 1 operation statically (#4926) 2021-01-29 11:47:25 +01:00
Lukas Bestle
27f3331a81
PHAR: Include issue docs for SARIF output (#4925)
The SARIF report uses the Markdown files inside `docs/running_psalm/issues` for its output, so the files should be included in the PHAR.
2021-01-29 11:47:25 +01:00
Lukas Bestle
c58f5603c3
SARIF report: Include help links (#4924) 2021-01-29 11:47:25 +01:00
Lukas Bestle
0355465b38
Full support for $this in @var annotations (#4922)
Fixes #4916.
2021-01-29 11:47:25 +01:00
MaximAL
d881f57e85
Consistent curly apostrophe characters (#4918) 2021-01-29 11:47:25 +01:00
Holger Woltersdorf
972da55d84
Add missing param for constructor arguments in PDOStatement#fetchObject (#4915)
* Add missing param for constructor arguments

PDOStatement#fetchObject allows a second, optional parameter for constructor arguments, which - if given - will be passed to the given class' constructor.
See: https://www.php.net/manual/de/pdostatement.fetchobject.php

Also see the PhpStorm stubs: https://github.com/JetBrains/phpstorm-stubs/blob/master/PDO/PDO.php#L1441

* Fix wrong nullability for 2nd argument in PDOStatement#fetchObject
2021-01-29 11:47:24 +01:00
Matthew Brown
491940e4b8
Just build Phar on Travis 2021-01-29 11:47:24 +01:00
Matthew Brown
7142c53f18
Fix test 2021-01-29 11:47:24 +01:00
Matthew Brown
3322ffb3f0
Fix #4912 - detect mismatching property type 2021-01-29 11:47:24 +01:00
Tyson Andre
d169d399af
Check if included files are listed in mustBeIgnored (#4911)
Previously, when a file was included in `include()`, it was not subject
to ignoreFiles

Related to #4876
2021-01-29 11:47:23 +01:00
Matthew Brown
704ae5bd8f
Fix lack of autoload_real in latest humbug/box 2021-01-29 11:47:23 +01:00
Matthew Brown
64ea6f8ce9
Fix other check 2021-01-29 11:47:23 +01:00
Matthew Brown
5165dc91b7
Disable platform check for Phar 2021-01-29 11:47:23 +01:00
Matthew Brown
c68e77a382
Bump circleci image version 2021-01-29 11:47:23 +01:00
Matthew Brown
ba823602ea
Fix #4901 - simplify mapping of template types within class 2021-01-29 11:47:23 +01:00
orklah
8076db9c44
[Doc] Add an example to explain how to handle plugin issues (#4908) 2021-01-29 11:47:23 +01:00
orklah
a475b23f0b
fix phpdoc (#4905) 2021-01-29 11:47:23 +01:00
orklah
bc900b2dd6
Document lowercase-string when possible (#4904)
* document lowercase-string

* fix missing strtolower
2021-01-29 11:47:22 +01:00
Benjamin Morel
8908877aa0
Change ReflectionUnionType::getTypes() return type (#4903) 2021-01-29 11:47:22 +01:00
Benjamin Morel
44c79daf1a
GEOS stubs (#4902) 2021-01-29 11:47:22 +01:00
Benjamin Morel
e6d23d10e9
Return type for DateTimeZone::getTransitions() (#4879) 2021-01-29 11:47:22 +01:00
orklah
25e022e77e
Illegal offset (#4865)
* Illegal offset access

* add tests

* fix tests
2021-01-29 11:47:22 +01:00
Matthew Brown
9405773882
Fix #4874 - remove strok stub 2021-01-29 11:47:22 +01:00
Fran Moreno
7ddec46e76
Allow by reference parameters in method docblock (#4873) 2021-01-29 11:47:22 +01:00
Benjamin Morel
8b8c6e5a02
Improve DateTimeZone signatures (#4870) 2021-01-29 11:47:21 +01:00
Bruce Weirdan
0b2081b621
Allow assertions on static class properties (#4833)
* Minimal implementation for assertions on static properties

* Added inheritance tests

* Add support for `ClassName::$var`

* Import strpos() to keep phpcs happy

* Add support for conditional assertions on static properties
2021-01-29 11:47:21 +01:00
Matthew Brown
d246932c0c
Improve feature list 2021-01-29 11:47:21 +01:00
Christer Edvartsen
3f86e8cb94
According to the PHP docs the session_name signature is: (#4855)
session_name ([ string|null $name = null ] ) : string|false

Resolves Possibly incorrect handling of session_name() #4854
2021-01-29 11:47:21 +01:00
Matt Brown
cecbceae41
Fix phpcs 2021-01-29 11:47:21 +01:00
Matthew Brown
a7c9cf400e
Remove most travis jobs 2021-01-29 11:47:21 +01:00
Matt Brown
8f192801c1
Prevent mixed array offset in array creation
Fixes #4846
2021-01-29 11:47:21 +01:00
Matt Brown
e87617e598
Fix #4848 - use better inference when incorrect array keys are passed 2021-01-29 11:47:21 +01:00
Matt Brown
c417769674
Fix #4851 - use better methhod for determining incorrect stub docblocks 2021-01-29 11:47:20 +01:00
Matt Brown
cbf7e596f7
Fix #4827 - don’t eradicate double after int check 2021-01-29 11:47:20 +01:00
Matt Brown
4416da85e7
Fix #4837 - bind correct static class when checking mixin types 2021-01-29 11:47:20 +01:00
Matt Brown
cc06cb53f5
Fix #4839 - undefined possibly set in by-reference should be treated as such 2021-01-29 11:47:20 +01:00
Matthew Brown
d3e6379c0f
Use my psl repo 2021-01-29 11:47:20 +01:00