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
Barney Laurance 3bc91b9944
Fix multiple issues with @internal and @psalm-internal (#3841)
* Add passing tests for property fetch on an @internal class

I'm trying to work out why the equivilent InvalidCodeParse test is
failing for PsalmInternal

* Treat all properties of a psalm-internal class as psalm-internal

* Remove all $internal properties from storage - use psalm_internal instead

@internal can be represented as internal to the namespace root, avoiding
the need to check for both properties in storage later.

* Raise InternalClass issue when an internal class is used with e.g. instanceOf

* fix docs and tests

* Add return type declartion to code example in doc

* Don't allow class psalm-internal to overide a tighter method psalm-internal

* Break up long line

* Code style - move && from EOL to SOL

* Restore misplaced &&

* Fix code style

* Fix namespace fetching so it works

Co-authored-by: Matthew Brown <github@muglug.com>
2020-07-22 19:27:35 -04:00
..
Assignment Fix multiple issues with @internal and @psalm-internal (#3841) 2020-07-22 19:27:35 -04:00
BinaryOp Refactor type comparison 2020-07-21 19:40:35 -04:00
Call Fix multiple issues with @internal and @psalm-internal (#3841) 2020-07-22 19:27:35 -04:00
Fetch Fix multiple issues with @internal and @psalm-internal (#3841) 2020-07-22 19:27:35 -04:00
ArrayAnalyzer.php Fix #3712 - allow taints to be suppressed with @psalm-suppress 2020-07-01 23:23:45 -04:00
AssertionFinder.php Refactor type comparison 2020-07-21 19:40:35 -04:00
AssignmentAnalyzer.php Refactor type comparison 2020-07-21 19:40:35 -04:00
BinaryOpAnalyzer.php Fix #3712 - allow taints to be suppressed with @psalm-suppress 2020-07-01 23:23:45 -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 Refactor type comparison 2020-07-21 19:40:35 -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 Fix #3712 - allow taints to be suppressed with @psalm-suppress 2020-07-01 23:23:45 -04:00
EvalAnalyzer.php Fix #3712 - allow taints to be suppressed with @psalm-suppress 2020-07-01 23:23:45 -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 Add back fix 2020-07-10 17:13:11 -04:00
IncludeAnalyzer.php Fix #3712 - allow taints to be suppressed with @psalm-suppress 2020-07-01 23:23:45 -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