Matthew Brown
4114456bf4
Key off lowercase classname and reduce dead code false positives
2017-01-30 00:26:17 -05:00
Matthew Brown
cc500e8228
Eliminate dead code
2017-01-30 00:25:16 -05:00
Matthew Brown
1ece3071f9
Add reference counting for methods and remove dead code
2017-01-29 23:44:05 -05:00
Matthew Brown
e9ba513250
Add classlike reference counts
2017-01-29 22:30:27 -05:00
Matthew Brown
d978966db4
Fix #37 - check parent calls for staticness
2017-01-29 22:13:53 -05:00
Matthew Brown
a45c47776b
Fix #79 - check anonymous class statements
2017-01-29 13:20:12 -05:00
Matthew Brown
bddfe41e67
Merge pull request #78 from vimeo/fix-classlikechecker-typo
...
Fixing a typo in the ClassLikeChecker exception message.
2017-01-29 00:36:59 -05:00
Jon Ursenbach
c66082897d
Fixing a typo in the ClassLikeChecker exception message.
2017-01-29 00:34:42 -05:00
Matthew Brown
89fabd9e21
Remove nightly from master due to PhpUnit issue
2017-01-29 00:29:07 -05:00
Matthew Brown
fe803129cf
Fix #77 with correct range param
2017-01-29 00:24:55 -05:00
Matthew Brown
aaec895e15
Do not stop dead when a property cannot be evaluated
2017-01-28 16:12:04 -05:00
Matthew Brown
a9203b63f8
Allow phan-like use of assert
2017-01-28 15:17:14 -05:00
Matthew Brown
199686c4db
Add back local vars when descending into method call
2017-01-28 03:55:19 -07:00
Matthew Brown
1bf0882bfc
Allow commas at the end of @param lines
2017-01-28 00:37:52 -07:00
Matthew Brown
2e4aa3d3b1
Do not suggest mixed types
2017-01-27 22:44:52 -07:00
Matthew Brown
f8a70dc707
Limit size of preview snippet
2017-01-27 22:39:16 -07:00
Matthew Brown
c868781731
Fix multiline docblock issue reporting issue
2017-01-27 22:24:25 -07:00
Matthew Brown
6714e28f5d
Fix line numbers for return typehints
2017-01-27 19:09:40 -07:00
Matthew Brown
a35f2e0792
Don’t unset $this when calculating scope changes
2017-01-27 18:54:27 -07:00
Matthew Brown
4c3dacbbed
Prevent erroneous __toString conversion in method check
2017-01-27 18:06:11 -07:00
Matthew Brown
ea06f62d72
Fix registration of private trait properties
2017-01-27 17:57:59 -07:00
Matthew Brown
3c3d22164c
Add private properties to context
2017-01-27 08:49:37 -07:00
Matthew Brown
e51763328c
Shortcut for generator, which does not extend anything
2017-01-27 08:41:32 -07:00
Matthew Brown
c485a3d056
Check for not-set-in-constructor errors across traits too
2017-01-27 08:28:21 -07:00
Matthew Brown
98d4ced24f
Make location of not-set-in-constructor errors more precise
2017-01-26 23:40:22 -07:00
Matthew Brown
63801c38c0
Make location of constructor error more specific
2017-01-26 23:32:03 -07:00
Matthew Brown
6bcc763414
Fix #3 by checking inside __constructor calls for initialisations
2017-01-26 23:23:12 -07:00
Matthew Brown
ff46487353
Be more discerning about unaryminus/plus inferred type
2017-01-25 21:50:34 -07:00
Matthew Brown
c14a19370f
Improve UnaryPlus/Minus still more
2017-01-25 20:23:06 -07:00
Matthew Brown
f03807e7b7
Fix unaryplus/minus type inference
2017-01-25 20:02:19 -07:00
Matthew Brown
4fa0055092
Remove unnecessary var_dump
2017-01-25 17:09:31 -07:00
Matthew Brown
7e7743d6fb
Do not complain about missing void return types if config set
2017-01-25 17:07:28 -07:00
Matthew Brown
15e8c1b904
Fix simplifyUnionType so classes with __toString aren’t confused with string
2017-01-25 17:01:01 -07:00
Matthew Brown
ea63fd7ae3
Fix #75 - allow inteeger offsets for object-like arrays
2017-01-25 00:11:24 -07:00
Matthew Brown
0da9c10d36
Don’t complain when adding array and object-like array
2017-01-23 15:40:55 -07:00
Matthew Brown
58aee6340d
Remove var_dump (shame on me)
2017-01-23 15:17:35 -07:00
Matthew Brown
df1d6abd7c
Make brand-new return types more accurate
2017-01-23 15:16:13 -07:00
Matthew Brown
35617e9d84
Add test for specific issue mentioned in #74
2017-01-23 14:19:08 -07:00
Matthew Brown
daa923e243
Stop analysis if parent class cannot be located
2017-01-23 13:36:06 -07:00
Matthew Brown
3ad6ec2e34
Be more resilient if we ignore that parent class does not exist
2017-01-23 13:21:40 -07:00
Matthew Brown
374dc65de1
Fix #39 by checking for ArrayAcces interface
2017-01-20 00:23:58 -05:00
Matthew Brown
894b25487f
Fix #71 - prevent instantiation of abstract classes
2017-01-20 00:10:10 -05:00
Matthew Brown
9d1b382820
Fix #48 by recording class definition line number & file path
2017-01-19 23:45:21 -05:00
Matt Brown
d0207b6098
Check that class exists before checking for ArrayAccess inheritors
2017-01-19 19:02:00 -05:00
Matt Brown
86201e71b2
Make arguments of SplFileObject::fputcsv optional
2017-01-19 17:58:34 -05:00
Matt Brown
c1e62a09e7
Merge suppressed issues with source’s issues
2017-01-19 17:58:08 -05:00
Matt Brown
d3a9452cde
Make sure we don’t lose type information while reconciling
2017-01-19 17:45:42 -05:00
Matthew Brown
5e15131f05
Merge pull request #72 from Fleshgrinder/bugfix/dependency-bounds
...
Fixed Dependency Bounds
2017-01-19 15:52:35 -05:00
Richard Fussenegger
f7c309d8f6
Fixed dependency bounds
...
Current definition of dependencies would result in **any** version being installed that is greater than the one specified. This is problematic since new major releases imply breaking changes and nothing ensures that psalm will be compatible with those updated dependencies. Using an operator that instructs Composer to ensure that this does not happen is therefore inalienable.
2017-01-19 21:18:46 +01:00
Matt Brown
a67800cac7
Ignore cloning of mixed variables
2017-01-19 15:00:05 -05:00