Matthew Brown
92e184086f
Fix #158 - prevent using resource in return type
2017-05-21 13:48:17 -04:00
Matthew Brown
4d020bcbdb
Remove unnecessary imports in tests
2017-05-19 00:52:15 -04:00
Matthew Brown
7532e32b9d
Fixed spacing and use statement formatting
2017-05-19 00:48:26 -04:00
Matt Brown
052624fa94
Fix issue calculating inherited parent property mutations
2017-05-12 19:15:08 -04:00
Matt Brown
53b81ac2e1
Fix pass-by-ref
2017-05-10 14:05:26 -04:00
github@muglug.com
20d4831f67
Improve return type ignore_nullable inference
2017-05-10 14:03:51 -04:00
Matt Brown
d7e2c5ee3c
Don’t emit InvalidReturnType when we don’t care about nullability
2017-05-10 13:52:24 -04:00
Matt Brown
f73fc7c6eb
Carry over ignore_nullable_issues when combining/simplifying types
2017-05-10 13:36:05 -04:00
Matt Brown
cadaef14e6
Carry forward ignore_nullable_return in fleshOutType
2017-05-10 12:49:59 -04:00
Matt Brown
39ece995b6
Add @psalm-ignore-nullable-return annotation
2017-05-10 12:36:11 -04:00
github@muglug.com
9ff8736e53
Add the means to ignore PossiblyNull* errors from the type itself
2017-05-09 16:38:58 -04:00
Matt Brown
a4bdca55e9
Fix sscanf test with new types
2017-05-05 19:56:45 -04:00
Matt Brown
967e372e25
Update function signatures from Phan
2017-05-05 19:43:35 -04:00
Matt Brown
77da5ca99e
Fix #156 - allow objectlike arrays to be merged nicely
2017-05-05 18:53:45 -04:00
Matt Brown
624bba0f5c
Divid pseudo properties into get and set types
2017-05-05 11:20:05 -04:00
Matthew Brown
c4f45b0f1a
Add more info for plugin
2017-05-05 00:06:46 -04:00
Matthew Brown
d2ae36296f
Add plugin to improve storage after scanning classlike
2017-05-04 22:40:24 -04:00
Matthew Brown
c9b9b29cf4
Fix all phpcs issues
2017-05-04 21:57:26 -04:00
Matt Brown
2bd1dfafe7
Make line smaller
2017-05-04 18:41:33 -04:00
Matt Brown
df890fbfb0
Fix #155 - support @property declaration for classes with magic getters & setters
2017-05-04 18:35:05 -04:00
Matthew Brown
754a4d9950
Allow Psalm to be run outside of the directory it's installed in ( #154 )
...
* Add --root option when not running Psalm from root directory
* Add informative error when running Psalm outside of its project directory
* Add better message in help
* Fix autoloader precedence
2017-05-04 14:25:58 -04:00
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