1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00
Commit Graph

6326 Commits

Author SHA1 Message Date
Matthew Brown
32f07fd823 Only update type from docblock if it gives more info 2016-07-11 19:57:01 -04:00
Matthew Brown
6e2fc6141a Add more robust fix for nullable kludge 2016-07-11 10:19:06 -04:00
Matthew Brown
04be1fb50e Add slight kludge if method is nullable 2016-07-11 10:15:32 -04:00
Matthew Brown
348e06ffb9 Fix treatment of param types 2016-07-10 16:09:09 -04:00
Matthew Brown
855ffbd9c1 Suppress mixed method call issues by default 2016-07-07 19:40:00 -04:00
Matthew Brown
70a92e006d Check for mixed method calls 2016-07-07 19:38:33 -04:00
Matthew Brown
ccc30163c2 Add assertive test 2016-07-07 18:10:01 -04:00
Matthew Brown
a8501be75f Allow method chaining 2016-06-30 00:27:47 -04:00
Matthew Brown
4f8fa010a5 Allow more characters in classnames 2016-06-30 00:27:33 -04:00
Matthew Brown
d59739d9c7 use safer check for ending statments 2016-06-29 18:30:27 -04:00
Matthew Brown
382fcb3a07 Add new tests for functionality 2016-06-29 18:15:51 -04:00
Matthew Brown
e0c16308a8 Improve switch checking (again) and fix null arg types 2016-06-29 18:10:41 -04:00
Matthew Brown
a93c54da0d Improve type resolution of params 2016-06-29 16:42:30 -04:00
Matthew Brown
2e4e52f0f3 Reduce nesting 2016-06-29 10:57:15 -04:00
Matthew Brown
59acb5cfb7 Make sure to return bool where necessary 2016-06-29 10:57:02 -04:00
Matthew Brown
50aff4bcb7 Fix combination of type assertions 2016-06-28 15:43:21 -04:00
Matthew Brown
4bd0e7c90f Use the clever methods when evaluating expression 2016-06-28 15:36:35 -04:00
Matthew Brown
35e08f5cd2 Fix if/ternary negation 2016-06-28 15:28:05 -04:00
Matthew Brown
9662f88631 Fix erroneous recursion 2016-06-28 15:25:28 -04:00
Matthew Brown
5b182fecea Support absolute files 2016-06-28 14:28:45 -04:00
Matthew Brown
71eea36b9c Improve switch type analysis 2016-06-28 13:56:44 -04:00
Matthew Brown
638c2999e3 Reove PHP 5.6 features 2016-06-27 15:10:13 -04:00
Matthew Brown
fdc4b0703f Only set to mixed if not yet set 2016-06-27 14:30:33 -04:00
Matthew Brown
16fda10e67 Only show variable errors where applicable 2016-06-27 13:22:16 -04:00
Matthew Brown
bd694459f3 Prepopulate all object properties 2016-06-27 10:46:27 -04:00
Matthew Brown
e4c590d7b7 Fix tests by adding a config flag for throwing exceptions 2016-06-26 22:40:57 -04:00
Matthew Brown
7f0139d27f Add pretty colours 2016-06-26 22:03:37 -04:00
Matthew Brown
eb9084dbad Add support for parsing bracket syntax 2016-06-26 22:02:23 -04:00
Matthew Brown
ad4943ead3 Allow custom config to be passed in 2016-06-26 15:33:51 -04:00
Matthew Brown
2ab3e3af40 Make sure IssueBuffer::finish is called after each public ProjectChecker method 2016-06-26 15:25:38 -04:00
Matthew Brown
5f60bc3a8b Actually rename file 2016-06-26 15:24:12 -04:00
Matthew Brown
2d9f39e3f4 Change IssueHandler to IssueBuffer 2016-06-26 15:18:40 -04:00
Matthew Brown
bf96b4de3a Add smart config identification 2016-06-26 13:45:20 -04:00
Matthew Brown
73eda1632e Add extra alerts for invalid docblocks 2016-06-24 18:18:11 -04:00
Matthew Brown
a1fb6294dc Add checking of object properties 2016-06-23 18:45:46 -04:00
Matthew Brown
9f20175b14 Change ExceptionHandler to IssueHandler and add error levels 2016-06-20 19:30:38 -04:00
Matthew Brown
26da9d7558 Add TryCatch return type test 2016-06-20 18:11:45 -04:00
Matthew Brown
6f9cb1d99c Use mixed type if we detect expression error 2016-06-20 18:10:55 -04:00
Matthew Brown
162a8a2c2b Search in while & try/catch 2016-06-20 18:10:24 -04:00
Matthew Brown
2b8c95a19d Use correct paths 2016-06-20 18:10:08 -04:00
Matthew Brown
f8fda8febb Do not check return types if we ignore for that file 2016-06-20 18:09:04 -04:00
Matthew Brown
50b65adb32 Add test for breaks in if 2016-06-20 16:55:12 -04:00
Matthew Brown
66535fb225 Allow void return type reporting 2016-06-20 16:54:43 -04:00
Matthew Brown
cf101b0fe0 Mixed cannot be substituted 2016-06-20 16:54:30 -04:00
Matthew Brown
0ecbfdbd64 Improve handling of binary ops 2016-06-20 16:54:02 -04:00
Matthew Brown
2dc64aafe3 Add foreach possibly-in-scope vars back 2016-06-20 16:30:31 -04:00
Matthew Brown
f60e23a7c7 Add separate scope tests file 2016-06-20 16:18:47 -04:00
Matthew Brown
a6eed85ba5 Add better scope analysis 2016-06-20 16:18:31 -04:00
Matthew Brown
953ba22a38 Add possiblyundefinedvariable tests 2016-06-20 12:38:47 -04:00
Matthew Brown
08ce4dbbf9 Fix for/foreach context handling 2016-06-20 12:38:31 -04:00