1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-16 11:26:55 +01:00
psalm/src/Psalm/Internal/Analyzer/Statements/Expression
Olle Härstedt d8e8ce428e
Add new annotation: @psalm-self-out (#3650)
* Add new config: sealAllMethods

* Add some more tests

* Fix codesniffer issue with preg_quote

* Fix missing method in test

* New tag @self-out (WIP)

* Add self_out_type to method storage

* Add some notes

* More work on self-out (WIP)

* More work on self-out (WIP)

* Use psalm-self-out instead of self-out

* Remove extra file

* Cleanup

* Wrap around try-catch - how to check if a method has/should have storage?

* New method hasStorage()

* Fix indentation

* Fix some errors

* Fix indentation

* Cast storage type to type

* Add proper use-statement in method storage

* Correct test class name

* Allow self_out to be null

* method_id can be string (why, when?)

Co-authored-by: Olle <noemail>
2020-07-01 18:10:24 -04:00
..
Assignment Prevent a few crashes with really bad code 2020-07-01 10:30:10 -04:00
BinaryOp Move static property fetch analyzer to own class 2020-06-18 11:53:24 -04:00
Call Add new annotation: @psalm-self-out (#3650) 2020-07-01 18:10:24 -04:00
Fetch Fix #3668 - taint property types for magic properties without @property 2020-06-25 00:24:37 -04:00
ArrayAnalyzer.php Improve tracking of array taints 2020-06-18 18:48:19 -04:00
AssertionFinder.php Fix #3631 - better treatment for assignments in complex conditionals 2020-06-24 13:16:52 -04:00
AssignmentAnalyzer.php Improve tainting of specializable classes 2020-06-19 01:22:51 -04:00
BinaryOpAnalyzer.php Improve tracking of array taints 2020-06-18 18:48:19 -04:00
BitwiseNotAnalyzer.php Make ExpressionAnalyzer more beautiful 2020-05-18 15:13:27 -04:00
BooleanNotAnalyzer.php Make ExpressionAnalyzer more beautiful 2020-05-18 15:13:27 -04:00
CallAnalyzer.php Improve handling of array_map, faking out calls where nececssary 2020-06-25 13:05:34 -04:00
CastAnalyzer.php Perform string casting for taints in ArgumentAnalyzer 2020-06-29 13:21:33 -04:00
CloneAnalyzer.php Allow cloning interfaces 2020-07-01 11:14:31 -04:00
EmptyAnalyzer.php Make ExpressionAnalyzer more beautiful 2020-05-18 15:13:27 -04:00
EncapsulatedStringAnalyzer.php Perform string casting for taints in ArgumentAnalyzer 2020-06-29 13:21:33 -04:00
EvalAnalyzer.php Improve tracking of array taints 2020-06-18 18:48:19 -04:00
ExitAnalyzer.php Fix #3681 - taint exit like echo 2020-06-25 17:17:08 -04:00
ExpressionIdentifier.php Make ExpressionAnalyzer more beautiful 2020-05-18 15:13:27 -04:00
IncDecExpressionAnalyzer.php Beautify BinaryOpAnalyzer 2020-05-18 18:57:09 -04:00
IncludeAnalyzer.php Add explicit path object 2020-06-22 02:10:03 -04:00
InstanceofAnalyzer.php Make ExpressionAnalyzer more beautiful 2020-05-18 15:13:27 -04:00
IssetAnalyzer.php Make ExpressionAnalyzer more beautiful 2020-05-18 15:13:27 -04:00
MagicConstAnalyzer.php __TRAIT__ can be string or non-empty-string (#3469) 2020-05-27 19:23:46 -04:00
PrintAnalyzer.php Mark print() statement as the same sink type as echo (#3669) 2020-06-24 17:23:16 -04:00
SimpleTypeInferer.php Infer better types for magic constants used in const initializers (#3602) 2020-06-18 09:48:51 -04:00
TernaryAnalyzer.php Make ExpressionAnalyzer more beautiful 2020-05-18 15:13:27 -04:00
UnaryPlusMinusAnalyzer.php Make ExpressionAnalyzer more beautiful 2020-05-18 15:13:27 -04:00
YieldAnalyzer.php Move static property fetch analyzer to own class 2020-06-18 11:53:24 -04:00
YieldFromAnalyzer.php Make ExpressionAnalyzer more beautiful 2020-05-18 15:13:27 -04:00