Skip to content

Commit

Permalink
Mark internal classes @internal
Browse files Browse the repository at this point in the history
  • Loading branch information
weirdan committed Jan 3, 2022
1 parent b54ab67 commit b924032
Show file tree
Hide file tree
Showing 202 changed files with 579 additions and 297 deletions.
322 changes: 26 additions & 296 deletions psalm-baseline.xml

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/Psalm/Internal/Algebra.php
Expand Up @@ -18,6 +18,9 @@
use function mt_rand;
use function substr;

/**
* @internal
*/
class Algebra
{
/**
Expand Down
3 changes: 3 additions & 0 deletions src/Psalm/Internal/Algebra/FormulaGenerator.php
Expand Up @@ -19,6 +19,9 @@
use function strlen;
use function substr;

/**
* @internal
*/
class FormulaGenerator
{
/**
Expand Down
3 changes: 3 additions & 0 deletions src/Psalm/Internal/Analyzer/AttributeAnalyzer.php
Expand Up @@ -21,6 +21,9 @@

use function reset;

/**
* @internal
*/
class AttributeAnalyzer
{
/**
Expand Down
3 changes: 3 additions & 0 deletions src/Psalm/Internal/Analyzer/ClassLikeNameOptions.php
Expand Up @@ -2,6 +2,9 @@

namespace Psalm\Internal\Analyzer;

/**
* @internal
*/
class ClassLikeNameOptions
{
/** @var bool */
Expand Down
2 changes: 2 additions & 0 deletions src/Psalm/Internal/Analyzer/DataFlowNodeData.php
Expand Up @@ -4,6 +4,8 @@

/**
* @psalm-immutable
*
* @internal
*/
class DataFlowNodeData
{
Expand Down
Expand Up @@ -19,6 +19,8 @@

/**
* A class for analysing a given method call's effects in relation to $this/self and also looking at return types
*
* @internal
*/
class ReturnTypeCollector
{
Expand Down
3 changes: 3 additions & 0 deletions src/Psalm/Internal/Analyzer/IssueData.php
Expand Up @@ -6,6 +6,9 @@

use const STR_PAD_LEFT;

/**
* @internal
*/
class IssueData
{
/**
Expand Down
3 changes: 3 additions & 0 deletions src/Psalm/Internal/Analyzer/MethodComparator.php
Expand Up @@ -39,6 +39,9 @@
use function strpos;
use function strtolower;

/**
* @internal
*/
class MethodComparator
{
/**
Expand Down
Expand Up @@ -28,6 +28,9 @@
use function array_values;
use function count;

/**
* @internal
*/
class IfConditionalAnalyzer
{
public static function analyze(
Expand Down
Expand Up @@ -23,6 +23,9 @@
use function preg_match;
use function preg_quote;

/**
* @internal
*/
class ElseAnalyzer
{
/**
Expand Down
Expand Up @@ -38,6 +38,9 @@
use function preg_quote;
use function spl_object_id;

/**
* @internal
*/
class ElseIfAnalyzer
{
/**
Expand Down
Expand Up @@ -38,6 +38,9 @@
use function strpos;
use function substr;

/**
* @internal
*/
class IfAnalyzer
{
/**
Expand Down
3 changes: 3 additions & 0 deletions src/Psalm/Internal/Analyzer/Statements/BreakAnalyzer.php
Expand Up @@ -10,6 +10,9 @@

use function end;

/**
* @internal
*/
class BreakAnalyzer
{
public static function analyze(
Expand Down
3 changes: 3 additions & 0 deletions src/Psalm/Internal/Analyzer/Statements/ContinueAnalyzer.php
Expand Up @@ -13,6 +13,9 @@

use function end;

/**
* @internal
*/
class ContinueAnalyzer
{
public static function analyze(
Expand Down
3 changes: 3 additions & 0 deletions src/Psalm/Internal/Analyzer/Statements/EchoAnalyzer.php
Expand Up @@ -19,6 +19,9 @@
use Psalm\Type;
use Psalm\Type\TaintKind;

/**
* @internal
*/
class EchoAnalyzer
{
public static function analyze(
Expand Down
Expand Up @@ -6,6 +6,9 @@
use Psalm\Type\Atomic;
use Psalm\Type\Union;

/**
* @internal
*/
class ArrayCreationInfo
{
/**
Expand Down
Expand Up @@ -4,6 +4,9 @@

use Psalm\Type\Union;

/**
* @internal
*/
class AssignedProperty
{
/**
Expand Down
Expand Up @@ -21,6 +21,9 @@
use Psalm\Type\Atomic\TString;
use Psalm\Type\Union;

/**
* @internal
*/
class BitwiseNotAnalyzer
{
public static function analyze(
Expand Down
Expand Up @@ -8,6 +8,9 @@
use Psalm\Internal\Analyzer\StatementsAnalyzer;
use Psalm\Type;

/**
* @internal
*/
class BooleanNotAnalyzer
{
public static function analyze(
Expand Down
Expand Up @@ -18,6 +18,9 @@
use function substr;
use function token_get_all;

/**
* @internal
*/
class ArgumentMapPopulator
{
/**
Expand Down
Expand Up @@ -16,6 +16,9 @@
use function array_merge;
use function array_search;

/**
* @internal
*/
class ClassTemplateParamCollector
{
/**
Expand Down
Expand Up @@ -5,6 +5,9 @@
use PhpParser;
use Psalm\Internal\MethodIdentifier;

/**
* @internal
*/
class AtomicCallContext
{
/** @var MethodIdentifier */
Expand Down
Expand Up @@ -5,6 +5,9 @@
use Psalm\Internal\MethodIdentifier;
use Psalm\Type\Union;

/**
* @internal
*/
class AtomicMethodCallAnalysisResult
{
/**
Expand Down
Expand Up @@ -56,6 +56,8 @@
* methods.
*
* The happy path (i.e 99% of method calls) is handled in ExistingAtomicMethodCallAnalyzer
*
* @internal
*/
class AtomicMethodCallAnalyzer extends CallAnalyzer
{
Expand Down
Expand Up @@ -48,6 +48,9 @@
use function in_array;
use function strtolower;

/**
* @internal
*/
class ExistingAtomicMethodCallAnalyzer extends CallAnalyzer
{
/**
Expand Down
Expand Up @@ -11,6 +11,9 @@
use Psalm\Issue\InternalMethod;
use Psalm\IssueBuffer;

/**
* @internal
*/
class MethodCallProhibitionAnalyzer
{
/**
Expand Down
Expand Up @@ -19,6 +19,9 @@
use Psalm\Storage\MethodStorage;
use Psalm\Type;

/**
* @internal
*/
class MethodCallPurityAnalyzer
{
public static function analyze(
Expand Down
Expand Up @@ -34,6 +34,9 @@
use function in_array;
use function strtolower;

/**
* @internal
*/
class MethodCallReturnTypeFetcher
{
/**
Expand Down
Expand Up @@ -17,6 +17,9 @@
use function end;
use function strtolower;

/**
* @internal
*/
class MethodVisibilityAnalyzer
{
/**
Expand Down
Expand Up @@ -25,6 +25,9 @@
use function array_map;
use function array_merge;

/**
* @internal
*/
class MissingMethodCallHandler
{
public static function handleMagicMethod(
Expand Down
Expand Up @@ -60,6 +60,9 @@
use function in_array;
use function strtolower;

/**
* @internal
*/
class AtomicStaticCallAnalyzer
{
public static function analyze(
Expand Down
Expand Up @@ -44,6 +44,9 @@
use function strtolower;
use function substr;

/**
* @internal
*/
class ExistingAtomicStaticCallAnalyzer
{
/**
Expand Down
Expand Up @@ -49,6 +49,9 @@
use function count;
use function get_class;

/**
* @internal
*/
class CastAnalyzer
{
public static function analyze(
Expand Down
Expand Up @@ -23,6 +23,9 @@
use function array_merge;
use function array_pop;

/**
* @internal
*/
class CloneAnalyzer
{
public static function analyze(
Expand Down
Expand Up @@ -11,6 +11,9 @@
use Psalm\IssueBuffer;
use Psalm\Type;

/**
* @internal
*/
class EmptyAnalyzer
{
public static function analyze(
Expand Down
Expand Up @@ -16,6 +16,9 @@

use function in_array;

/**
* @internal
*/
class EncapsulatedStringAnalyzer
{
public static function analyze(
Expand Down
Expand Up @@ -21,6 +21,9 @@
use Psalm\Type\TaintKind;
use Psalm\Type\Union;

/**
* @internal
*/
class ExitAnalyzer
{
public static function analyze(
Expand Down
Expand Up @@ -14,6 +14,9 @@
use function is_string;
use function strtolower;

/**
* @internal
*/
class ExpressionIdentifier
{
public static function getVarId(
Expand Down
Expand Up @@ -17,6 +17,9 @@
use Psalm\Node\Scalar\VirtualLNumber;
use Psalm\Type;

/**
* @internal
*/
class IncDecExpressionAnalyzer
{
/**
Expand Down
Expand Up @@ -14,6 +14,9 @@
use function in_array;
use function strtolower;

/**
* @internal
*/
class InstanceofAnalyzer
{
public static function analyze(
Expand Down

0 comments on commit b924032

Please sign in to comment.