1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-15 19:07:00 +01:00
psalm/src/Psalm/Internal/Analyzer/Statements
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
..
Block Refactor type comparison 2020-07-21 19:40:35 -04:00
Expression Fix multiple issues with @internal and @psalm-internal (#3841) 2020-07-22 19:27:35 -04:00
BreakAnalyzer.php Break up StatementsAnalyzer 2020-05-19 12:56:30 -04:00
ContinueAnalyzer.php Break up StatementsAnalyzer 2020-05-19 12:56:30 -04:00
EchoAnalyzer.php Refactor type comparison 2020-07-21 19:40:35 -04:00
ExpressionAnalyzer.php Fix #3797 - prevent many chained assignments crashing Psalm 2020-07-10 16:49:45 -04:00
GlobalAnalyzer.php Break up StatementsAnalyzer 2020-05-19 12:56:30 -04:00
NopAnalyzer.php Break up StatementsAnalyzer 2020-05-19 12:56:30 -04:00
ReturnAnalyzer.php Refactor type comparison 2020-07-21 19:40:35 -04:00
StaticAnalyzer.php Refactor type comparison 2020-07-21 19:40:35 -04:00
ThrowAnalyzer.php Refactor type comparison 2020-07-21 19:40:35 -04:00
UnsetAnalyzer.php Fix some more tests 2020-07-21 23:16:56 -04:00
UnusedAssignmentRemover.php Break up StatementsAnalyzer 2020-05-19 12:56:30 -04:00