1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-13 09:47:29 +01:00
Commit Graph

144 Commits

Author SHA1 Message Date
Matthew Brown
b9b639e968 Add support for Yoda comparisons 2016-04-17 15:22:10 -04:00
Matthew Brown
acf16db64f View function declarations are not methods 2016-04-17 14:48:57 -04:00
Matthew Brown
079ddb66ee Be more conservative with how we inspect inherited methods 2016-04-17 12:27:47 -04:00
Matthew Brown
bac2ab6027 Port over method custom calls 2016-04-17 11:26:29 -04:00
Matthew Brown
851c6418d3 Register more methods to prevent namespacing difficulties when reflecting 2016-04-17 11:22:18 -04:00
Matthew Brown
4adae3eb06 Add checking of nested namespace nodes 2016-04-17 10:25:43 -04:00
Matthew Brown
56d4d1c684 Split code out from StatementsChecker so it isn't so monolithic 2016-04-16 16:28:25 -04:00
Matthew Brown
f4910b0b96 Remove Vimeo-specific code and improve class checking 2016-04-16 11:28:19 -04:00
Matthew Brown
14b6b3dae2 Do not empty out $new_vars if a return statement is found 2016-04-16 10:18:40 -04:00
Matthew Brown
278d2cb642 Comment out type coercion warnings 2016-04-15 13:24:20 -04:00
Matthew Brown
6684d80041 Add warning for type coercion 2016-04-15 13:11:49 -04:00
Matthew Brown
8c039151de Fix FQCN resolution for registerMethod 2016-04-15 12:57:35 -04:00
Matthew Brown
fbc6cdb346 Fix name resolution for subclasses 2016-04-15 12:48:41 -04:00
Matthew Brown
c82a3a00a9 Fix isMock check 2016-04-12 16:22:25 -04:00
Matthew Brown
d2243c3317 Add sanity check tests 2016-04-12 16:12:38 -04:00
Matthew Brown
2bfe45ce24 Add more lenient method checking and permit object traversal 2016-04-12 16:12:20 -04:00
Matthew Brown
27ef730836 Support nested generic types 2016-04-12 11:59:27 -04:00
Matthew Brown
e4846cd62f Add protective isset 2016-04-12 11:30:11 -04:00
Matthew Brown
ff578f8468 Add support for square bracket array declarations is_array checks 2016-04-12 11:28:36 -04:00
Matthew Brown
d07e340d66 Add support for iterator generics 2016-04-11 19:13:50 -04:00
Matthew Brown
283180115b Fix incorrect test & implementation 2016-04-04 16:33:26 -04:00
Matthew Brown
321a0b8288 Fix ternary checks and be more lenient with null issues 2016-04-04 15:00:57 -04:00
Matthew Brown
208b6e833b Remove var_dump 2016-04-04 14:29:32 -04:00
Matthew Brown
6ec754d21d Add redefined var scanning to switch statements 2016-04-04 14:29:02 -04:00
Matthew Brown
ba4d5e6376 Do not check deeply-nested concatenations 2016-04-04 14:06:29 -04:00
Matthew Brown
5c132274f4 Add support for $this->x vars 2016-04-04 01:21:28 -04:00
Matthew Brown
9032aa065a Fix variable redefinition 2016-04-04 00:17:19 -04:00
Matthew Brown
265df0f4cb Improve message 2016-04-03 20:20:46 -04:00
Matthew Brown
13e9923cd5 Fix ternary else check 2016-04-03 20:14:19 -04:00
Matthew Brown
c2817d4168 Fix booboo 2016-04-03 19:49:32 -04:00
Matthew Brown
b60213395b Add initial rudimentary tests 2016-04-03 19:47:06 -04:00
Matthew Brown
f4dd4cb782 Support testing statements 2016-04-03 19:41:54 -04:00
Matthew Brown
83b7896d2b Move all files to PSR-4-compliant folder structure 2016-04-03 19:41:22 -04:00
Matthew Brown
a6e86732ba Increase nesting level 2016-04-03 14:51:07 -04:00
Matthew Brown
78123ada52 If the statement contains an or, do not make assumptions 2016-04-03 14:50:57 -04:00
Matthew Brown
e542b876f8 Fix puny bug 2016-04-03 14:30:49 -04:00
Matthew Brown
9b26dc8eab Type reconciliation now works pretty well 2016-04-03 14:25:41 -04:00
Matthew Brown
655039427c Improve type reconcilliation and catch more scope errors 2016-04-02 20:27:36 -04:00
Matthew Brown
925adac3d1 Add support for detecting Mock interfaces 2016-04-01 10:52:43 -04:00
Matthew Brown
4938b984ed Ignore MockInterface things 2016-03-23 15:37:43 -04:00
Matthew Brown
979a9541fa Do deep inspection of includes 2016-03-23 13:05:25 -04:00
Matthew Brown
27aeb6574d Remove var_dump 2016-03-17 14:06:32 -04:00
Matthew Brown
6365935850 Check casing errors 2016-03-17 14:06:01 -04:00
Matthew Brown
03f7dc0651 Do not warn about comments after return 2016-03-14 12:48:18 -04:00
Matthew Brown
bc463a4f00 Add check for Nop 2016-03-14 12:38:08 -04:00
Matthew Brown
8ba9e8b73e Add deeper level checking 2016-03-10 15:43:23 -05:00
Steve Miketa
ea5948dedb Use dev-master alias 2016-03-07 13:51:42 -05:00
Steve Miketa
42b24bd5f0 Update php-parser package 2016-03-07 13:28:02 -05:00
Matthew Brown
0e43a764bb Add support for type generators 2016-03-03 17:24:51 -05:00
Matthew Brown
5b97476c40 Merge pull request #13 from stephenm/master
Update patched version of php-parser
2016-03-03 12:39:12 -05:00