Matthew Brown
36e2b1dd67
Fix #925 - set correct flag when coercing class-like string to specific
2018-08-20 22:25:10 -04:00
Matthew Brown
8814dff3c1
Fix #947 - interpret type hints of unpacked args
2018-08-20 22:11:01 -04:00
Pieter De Schepper
14e336e69a
Fix for not suppressing MethodSignatureMismatch and InvalidReturnType ( #939 )
...
* Fix for not suppressing MethodSignatureMismatch
If you have an inherited class that overrides a method with a different return type, you can now suppress it with
@psalm-suppress MethodSignatureMismatch
* Fix for non-suppressable InvalidReturnType
2018-08-20 21:37:21 -04:00
François Kooman
53ddb893e2
various DateTime/DateInterval argument type fixes ( #949 )
2018-08-18 16:18:55 -04:00
Matt Brown
070e7903df
Allow suppression of TooManyArguments by function/method id
2018-08-16 16:49:33 -04:00
Bruce Weirdan
3b3863f3a8
Scan entire file/dir list at once ( #944 )
...
fixes vimeo/psalm#943
2018-08-15 11:57:40 -04:00
Matt Brown
366f625c83
Improve handling of coerced-to-array strings in array_splice
2018-08-14 11:51:17 -04:00
Matt Brown
cb63f4f70f
Add support for checking DeprecatedTrait and DeprecatedConstant
2018-08-10 13:25:25 -04:00
Matthew Brown
2fee699d25
Fix #908 - dont’t emit UnresolvableInclude after file_exists check
2018-08-09 23:29:30 -04:00
Matthew Brown
abc19d7136
Fix #915 - never care about falsable/nullable issues when matching functions from callmap
2018-08-08 23:28:30 -04:00
Matthew Brown
b9018a4a03
Fix #936 - add support for class constants in enums
2018-08-08 23:12:12 -04:00
Matthew Brown
7c10a09ead
Fix #911 - properly substitute alias types
...
Also improve handling of array_splice
2018-08-08 22:33:31 -04:00
Matthew Brown
9880e2bede
Prevent leading-number constants in docblocks
2018-08-08 21:36:33 -04:00
Matthew Brown
6670dd31e1
Fix #927 - improve typing of object-like arrays containing class like strings
2018-08-08 21:31:13 -04:00
Matthew Brown
d9af167e38
Fix #931 - replace self in enum declaration where possible
2018-08-08 20:59:21 -04:00
Matthew Brown
55be2c3ce4
Fix #934 - allow numbers in class constant enums
2018-08-08 20:36:16 -04:00
Matt Brown
226aa27686
Fix issue resolving namespaced constants
2018-08-08 16:13:37 -04:00
Matt Brown
2636b194db
Fix #920 - support @var self properties in static method calls
2018-08-07 14:43:05 -04:00
Matt Brown
0304201d91
Fix #932 - allow obvious string vars to be used for includes
2018-08-07 13:17:23 -04:00
François Kooman
c54534c640
fix return values of imagettfbbox and imagettftext ( #929 )
2018-08-03 11:01:45 -05:00
Matthew Brown
37be70a465
Fix issue calling possibly magic method
2018-08-02 16:14:53 -05:00
Matthew Brown
c9a2ca9321
Allow output of get_parent_class to be used in new without check
2018-08-02 13:43:13 -05:00
François Kooman
b1e81c2c25
fix ldap_bind parameters, allow null for bind_rdn and bind_password
2018-08-02 13:14:41 -05:00
Tyson Andre
06abf52d94
Fix typos detected by misspell
( #924 )
...
Both of initiali[sz]e were used, z was more common.
2018-08-02 00:40:51 -04:00
François Kooman
9ebf748eb9
fix return value of headers_list ( #919 )
2018-08-02 00:40:10 -04:00
Matthew Brown
d3fc9a51e0
Improve callmap with PHPStan’s additions
...
cc @TysonAndre
2018-07-22 19:15:40 -04:00
Matthew Brown
b6372f8342
Analyse SimpleNameResolver too
2018-07-22 18:00:08 -04:00
Matthew Brown
4de33e509b
Fix linting issues
2018-07-21 22:55:16 -04:00
Matthew Brown
cc28ff7ad6
Fix #904 - scan all docblocks for possible @psalm-type annotations
2018-07-21 22:24:33 -04:00
Matthew Brown
200ea70334
Check that non-user-defined abstract methods are implemented, too
2018-07-21 20:50:42 -04:00
Matthew Brown
bc23f732a4
Fix #905 - ignore interface case when checking for extended interfaces
2018-07-21 20:38:55 -04:00
Matthew Brown
79d547d0a0
Add support for second dirname arg
...
Fixes #900
2018-07-21 20:22:42 -04:00
Matthew Brown
c97329da06
Fix #903 - make sure parent::foo is executed in context of method’s class
...
and not immediate parent
2018-07-21 20:01:58 -04:00
Matt Brown
ad3e449982
Allow rescanning of classes when we need more info
2018-07-18 11:44:01 -04:00
Matthew Brown
2af7ea05da
Fix #897 - understand static class comparisons in is_a
2018-07-17 22:50:30 -04:00
Matt Brown
6a06f06044
Improve API for disabling extensions and disable apc as well
2018-07-17 16:40:03 -04:00
Matt Brown
516b2eea5d
Fix SoapClient::__call param type
2018-07-17 14:16:22 -04:00
Matt Brown
73aa0df08a
Restart without grpc if running in threaded mode
2018-07-17 14:08:40 -04:00
Matthew Brown
9a9adf897d
Fix #896 - improve ReflectionParameter::getType return
2018-07-17 08:45:42 -04:00
Matthew Brown
0fa7cbeb02
Fix #895 - check __call magic method args
2018-07-16 22:48:53 -04:00
Matthew Brown
39870f97c4
Fix #894 - check magic methods with given return types
2018-07-16 20:32:16 -04:00
Matt Brown
92aa3f8117
Fix dumb regression
2018-07-16 16:07:18 -04:00
Matt Brown
b80440f1e3
Fix #893 - improve error message for missing intersection type method
2018-07-16 11:52:38 -04:00
Matthew Brown
95b9b8b51e
Remove PHP 5-incompatible things from SimpleNameResolver
2018-07-16 00:03:03 -04:00
Matthew Brown
e836f69ca2
Fix #502 - check for bad generator return in more places
2018-07-15 17:47:58 -04:00
Matthew Brown
1e54c61fde
Fix #18 - add support for @psalm-type
2018-07-15 17:23:17 -04:00
Matthew Brown
f9ba8d7167
Fix #573 - improve required param message
2018-07-13 20:17:29 -04:00
Matthew Brown
fee705f90c
Fix #489 - support @psalm-template
2018-07-13 19:09:35 -04:00
Matthew Brown
91f7cdf134
Fix #890 - improve reporting site for some method issues
2018-07-13 18:47:21 -04:00
Matthew Brown
1589b2a01e
Fix #269 - allow trigger_error to count as exit statement
2018-07-13 18:36:25 -04:00