Skip to content

Commit

Permalink
Moved all classes to Typhoon\Type namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
vudaltsov committed Sep 21, 2023
1 parent 74ade7c commit e519e79
Show file tree
Hide file tree
Showing 71 changed files with 224 additions and 380 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
},
"autoload": {
"psr-4": {
"Typhoon\\": "src/"
"Typhoon\\Type\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Typhoon\\": "tests/"
"Typhoon\\Type\\": "tests/psalm/"
},
"files": [
"tests/Type/functions.php"
"tests/psalm/functions.php"
]
},
"config": {
Expand Down
46 changes: 23 additions & 23 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions src/Type/ArrayKeyType.php → src/ArrayKeyType.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Typhoon\Type;

use Typhoon\Type;
use Typhoon\TypeVisitor;

/**
* @api
* @psalm-immutable
Expand Down
3 changes: 0 additions & 3 deletions src/Type/ArrayType.php → src/ArrayType.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Typhoon\Type;

use Typhoon\Type;
use Typhoon\TypeVisitor;

/**
* @api
* @psalm-immutable
Expand Down
3 changes: 0 additions & 3 deletions src/Type/BoolType.php → src/BoolType.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Typhoon\Type;

use Typhoon\Type;
use Typhoon\TypeVisitor;

/**
* @api
* @psalm-immutable
Expand Down
3 changes: 0 additions & 3 deletions src/Type/CallableArrayType.php → src/CallableArrayType.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Typhoon\Type;

use Typhoon\Type;
use Typhoon\TypeVisitor;

/**
* @api
* @psalm-immutable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Typhoon\Type;

use Typhoon\Type;
use Typhoon\TypeVisitor;

/**
* @api
* @psalm-immutable
Expand Down
3 changes: 0 additions & 3 deletions src/Type/CallableType.php → src/CallableType.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Typhoon\Type;

use Typhoon\Type;
use Typhoon\TypeVisitor;

/**
* @api
* @psalm-immutable
Expand Down
3 changes: 0 additions & 3 deletions src/Type/ClassConstantType.php → src/ClassConstantType.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Typhoon\Type;

use Typhoon\Type;
use Typhoon\TypeVisitor;

/**
* @api
* @psalm-immutable
Expand Down
3 changes: 0 additions & 3 deletions src/Type/ClassStringType.php → src/ClassStringType.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Typhoon\Type;

use Typhoon\Type;
use Typhoon\TypeVisitor;

/**
* @api
* @psalm-immutable
Expand Down
3 changes: 0 additions & 3 deletions src/Type/ClassTemplateType.php → src/ClassTemplateType.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Typhoon\Type;

use Typhoon\Type;
use Typhoon\TypeVisitor;

/**
* @api
* @psalm-immutable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Typhoon\Type;

use Typhoon\Type;
use Typhoon\TypeVisitor;

/**
* @api
* @psalm-immutable
Expand Down
3 changes: 0 additions & 3 deletions src/Type/ClosureType.php → src/ClosureType.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Typhoon\Type;

use Typhoon\Type;
use Typhoon\TypeVisitor;

/**
* @api
* @psalm-immutable
Expand Down
3 changes: 0 additions & 3 deletions src/Type/ConstantType.php → src/ConstantType.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Typhoon\Type;

use Typhoon\Type;
use Typhoon\TypeVisitor;

/**
* @api
* @psalm-immutable
Expand Down
3 changes: 0 additions & 3 deletions src/Type/EnumStringType.php → src/EnumStringType.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Typhoon\Type;

use Typhoon\Type;
use Typhoon\TypeVisitor;

/**
* @api
* @psalm-immutable
Expand Down
3 changes: 0 additions & 3 deletions src/Type/FalseType.php → src/FalseType.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Typhoon\Type;

use Typhoon\Type;
use Typhoon\TypeVisitor;

/**
* @api
* @psalm-immutable
Expand Down
3 changes: 0 additions & 3 deletions src/Type/FloatLiteralType.php → src/FloatLiteralType.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Typhoon\Type;

use Typhoon\Type;
use Typhoon\TypeVisitor;

/**
* @api
* @psalm-immutable
Expand Down
3 changes: 0 additions & 3 deletions src/Type/FloatType.php → src/FloatType.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Typhoon\Type;

use Typhoon\Type;
use Typhoon\TypeVisitor;

/**
* @api
* @psalm-immutable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Typhoon\Type;

use Typhoon\Type;
use Typhoon\TypeVisitor;

/**
* @api
* @psalm-immutable
Expand Down
3 changes: 0 additions & 3 deletions src/Type/IntLiteralType.php → src/IntLiteralType.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Typhoon\Type;

use Typhoon\Type;
use Typhoon\TypeVisitor;

/**
* @api
* @psalm-immutable
Expand Down
3 changes: 0 additions & 3 deletions src/Type/IntRangeType.php → src/IntRangeType.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Typhoon\Type;

use Typhoon\Type;
use Typhoon\TypeVisitor;

/**
* @api
* @psalm-immutable
Expand Down
3 changes: 0 additions & 3 deletions src/Type/IntType.php → src/IntType.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Typhoon\Type;

use Typhoon\Type;
use Typhoon\TypeVisitor;

/**
* @api
* @psalm-immutable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Typhoon\Type;

use Typhoon\Type;
use Typhoon\TypeVisitor;

/**
* @api
* @psalm-immutable
Expand Down
3 changes: 0 additions & 3 deletions src/Type/IntersectionType.php → src/IntersectionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Typhoon\Type;

use Typhoon\Type;
use Typhoon\TypeVisitor;

/**
* @api
* @psalm-immutable
Expand Down
3 changes: 0 additions & 3 deletions src/Type/IterableType.php → src/IterableType.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Typhoon\Type;

use Typhoon\Type;
use Typhoon\TypeVisitor;

/**
* @api
* @psalm-immutable
Expand Down
3 changes: 0 additions & 3 deletions src/Type/KeyOfType.php → src/KeyOfType.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Typhoon\Type;

use Typhoon\Type;
use Typhoon\TypeVisitor;

/**
* @api
* @psalm-immutable
Expand Down
3 changes: 0 additions & 3 deletions src/Type/ListType.php → src/ListType.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Typhoon\Type;

use Typhoon\Type;
use Typhoon\TypeVisitor;

/**
* @api
* @psalm-immutable
Expand Down
Loading

0 comments on commit e519e79

Please sign in to comment.