Skip to content

Commit

Permalink
Add proper tags on some internal APIs
Browse files Browse the repository at this point in the history
Some internal types or pseudo-constants on the Compiler were missing the
`@internal` flag.
  • Loading branch information
stof committed Aug 17, 2024
1 parent 4f7f778 commit 0933458
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/Compiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,28 @@ class Compiler
/** @deprecated */
public static $Infinity = [Type::T_KEYWORD, 'Infinity'];
public static $null = [Type::T_NULL];
/**
* @internal
*/
public static $nullString = [Type::T_STRING, '', []];
/**
* @internal
*/
public static $defaultValue = [Type::T_KEYWORD, ''];
/**
* @internal
*/
public static $selfSelector = [Type::T_SELF];
public static $emptyList = [Type::T_LIST, '', []];
public static $emptyMap = [Type::T_MAP, [], []];
public static $emptyString = [Type::T_STRING, '"', []];
/**
* @internal
*/
public static $with = [Type::T_KEYWORD, 'with'];
/**
* @internal
*/
public static $without = [Type::T_KEYWORD, 'without'];
private static $emptyArgumentList = [Type::T_LIST, '', [], []];

Expand Down
3 changes: 3 additions & 0 deletions src/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ class Type
* @internal
*/
const T_FOR = 'for';
/**
* @internal
*/
const T_FUNCTION = 'function';
/**
* @internal
Expand Down

0 comments on commit 0933458

Please sign in to comment.