Matthew Brown
bd14de30e7
Update version requirements for newest Psalm
2017-05-02 12:23:53 -04:00
Matt Brown
9cabf428c4
Only make isset $this->property mixed if not already defined
2017-04-28 16:41:54 -04:00
Jon Ursenbach
f65c618b2e
PSR-2 adjustments and adding PHPCS checks into the Travis config. ( #149 )
...
* PSR-2 adjustments and adding PHPCS checks into the Travis config.
* Reverting some CallChecker changes and no longer casting vars to null.
2017-04-28 00:31:55 -04:00
SignpostMarv
f71b4601e0
added quick globbing support for includes, does not satisfy vimeo/psalm#84 but is sort of related ( #150 )
2017-04-26 15:33:50 -04:00
Tomáš Votruba
a84e70c3d0
composer: bump to PHP 5.6, as in travis ( #141 )
2017-04-26 14:53:39 -04:00
Jon Ursenbach
11bc153deb
Rewriting and streamlining every unit test with data providers. ( #147 )
...
* Rewriting and streamlining every unit test with data providers.
All unit tests have been rewritten into PHPUnit data providers
to reduce the amount of unnecessary code-reuse through out the
test suite.
2017-04-24 23:45:02 -04:00
Matthew Brown
9ea80b5ef8
Merge pull request #146 from vimeo/simplexmlelement-asxml
...
`SimpleXMLElement::asXML` returns a `string|boolean`.
2017-04-22 19:41:16 -04:00
Jon Ursenbach
ecee8df753
SimpleXMLElement::asXML
returns a string|boolean
. #145
2017-04-22 18:13:18 -04:00
Matt Brown
bd6a623bfd
Fix possible empty type when inferredType not set
2017-04-21 16:33:18 -04:00
Matt Brown
dc26d2df04
Fix #144 - prevent innaccurate __toString warning
2017-04-21 14:23:09 -04:00
Matt Brown
f7daa6e768
Fix #143 by allowing scalar types to be passed through
2017-04-21 14:06:47 -04:00
Matthew Brown
23401672c0
Fix issue parsing return types with brackets
2017-04-19 09:03:24 -04:00
Matthew Brown
1a8cdc5da9
Allow two or more instanceof interface checks side by side
2017-04-15 21:25:53 -04:00
Matthew Brown
007442fdd0
Fix possibly-private error
2017-04-15 21:10:49 -04:00
Matthew Brown
f67e92023b
Add support for intersection types
...
Fixes #140
2017-04-15 20:36:40 -04:00
Matthew Brown
2bdd062400
Ternary else should ignore if expression context
2017-04-15 13:46:18 -04:00
Matthew Brown
eebaf5795d
Fix regression dealing with union types from docblocks
2017-04-15 12:44:38 -04:00
Matthew Brown
bdfe2396ad
Don’t suggest useless type information
2017-04-15 00:45:43 -04:00
Matthew Brown
a8bee2f843
Suggest missing property types for traits as well
2017-04-15 00:04:03 -04:00
Matthew Brown
0c4824b2cc
Take property defaults into account when suggesting missing type
2017-04-14 23:46:55 -04:00
Matthew Brown
8d46c65815
Only make non-null if inside constructor
2017-04-14 23:26:58 -04:00
Matthew Brown
60be6f07a0
Delay checks for MissingPropertyType so we can give more useful messages
2017-04-14 23:09:34 -04:00
Matthew Brown
ce6ca58291
Fix #114 - add optional Hack-like checks calls
2017-04-14 21:32:14 -04:00
Matthew Brown
97916c523e
Merge pull request #138 from idr0id/master
...
Fix undefined global constant in closure
2017-04-14 08:22:29 -04:00
Vladimir Komissarov
818e3be00c
Fix undefined global constant in closure
2017-04-14 17:03:09 +07:00
Matt Brown
7bcf7f13b1
Fix #137 - add for init in main scope
2017-04-11 17:43:46 -04:00
Matthew Brown
bfb448132f
Merge pull request #136 from SignpostMarv/exception-expose-what-line-number
...
Show what line number created a docblock parsing exception
2017-04-11 17:36:22 -04:00
SignpostMarv
46a0b03aac
enable the exposure of the source line number when DocblockParseException is thrown
2017-04-11 22:14:15 +01:00
Matthew Brown
e694719272
Merge pull request #135 from SignpostMarv/phpunit-failure
...
Phpunit failure
2017-04-11 17:05:21 -04:00
SignpostMarv
82c3a664a8
skip tests that extend SoapClient if SoapClient does not exist
2017-04-11 21:02:18 +01:00
SignpostMarv
3c0053d431
move phpunit config to phpunit.xml.dist to allow tinkering
2017-04-11 21:01:21 +01:00
Matt Brown
ed356bfbd0
Don’t mistake same-named functions for old-style constructors
...
Fixes #131
2017-04-10 11:03:19 -04:00
Matthew Brown
32efdfd0f7
Fix #129 - emit PossiblyNullFuntionCall when encountering such a thing
2017-04-08 11:38:06 -04:00
Matthew Brown
2d454d6e10
Fix #130 - check class exists before checking for __invoke
2017-04-08 11:15:17 -04:00
Matthew Brown
a985fd9324
Add PossiblyInvalidArgument for closure param type checks
2017-04-08 09:47:03 -04:00
Matthew Brown
64361ad2c3
Add more descriptive message to PossiblyInvalidArgument issue
2017-04-08 09:43:58 -04:00
Matthew Brown
c663062816
Add PossiblyUndefinedArgument issue to cope with #126
2017-04-08 09:28:02 -04:00
Matthew Brown
b3a454cf5b
Create new InvalidMethodCall issue for calling methods on non-objects
2017-04-08 09:20:32 -04:00
Matthew Brown
7d17a07cd2
Fix #125 - allow abstract classes to reference methods only defined in interfaces
2017-04-07 19:16:25 -04:00
Matt Brown
f011197090
Fix #124 - don’t check array_filter closures when >2 args passed
2017-04-07 18:30:15 -04:00
Matthew Brown
b20ddfec94
Add better way of checking two types can ever yield identical values
2017-04-07 09:02:09 -04:00
Matthew Brown
8910e4226c
Allow scalar type refinement
2017-04-07 00:19:55 -04:00
Matthew Brown
40427839ea
Get all variables possibly assigned in conditional
2017-04-06 22:56:37 -04:00
Matthew Brown
b74b8d7a58
Prevent reconciling to empty
2017-04-06 22:38:12 -04:00
Matthew Brown
20b0460a33
Fix #123 - ternary byref vars now adjusted
2017-04-06 21:53:29 -04:00
Matt Brown
8a20aca4cf
Only compare non-null types
2017-04-06 18:11:09 -04:00
Matt Brown
c09b0e459a
Make is_numeric a proper type refinement
2017-04-06 18:06:24 -04:00
Matt Brown
e7aec27eae
Prevent emitting issues when comparing mixed values
2017-04-06 17:40:15 -04:00
Matt Brown
1c6934bfa8
Fix a couple more return types
2017-04-06 16:41:44 -04:00
Matt Brown
20b148d2d5
Fix preg_match return types
2017-04-06 15:48:52 -04:00