Skip to content

Commit

Permalink
Update namespaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed Oct 9, 2023
1 parent 4f0d69c commit 304359c
Show file tree
Hide file tree
Showing 19 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
},
"autoload": {
"psr-4": {
"yii\\phpstan\\": "src"
"Yii\\PHPStan\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"yii\\phpstan\\tests\\": "tests"
"Yii\\PHPStan\\Tests\\": "tests"
}
},
"extra": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace yii\phpstan\Reflection;
namespace Yii\PHPStan\Reflection;

use PHPStan\Reflection\Annotations\AnnotationsPropertiesClassReflectionExtension;
use PHPStan\Reflection\ClassReflection;
Expand All @@ -12,7 +12,7 @@
use PHPStan\Reflection\ReflectionProvider;
use PHPStan\Type\ObjectType;
use yii\base\Application as BaseApplication;
use yii\phpstan\ServiceMap;
use Yii\PHPStan\ServiceMap;
use yii\web\Application as WebApplication;

final class ApplicationPropertiesClassReflectionExtension implements PropertiesClassReflectionExtension
Expand Down
2 changes: 1 addition & 1 deletion src/Reflection/ComponentPropertyReflection.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace yii\phpstan\Reflection;
namespace Yii\PHPStan\Reflection;

use PHPStan\Reflection\ClassReflection;
use PHPStan\Reflection\PropertyReflection;
Expand Down
2 changes: 1 addition & 1 deletion src/Reflection/RequestMethodsClassReflectionExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace yii\phpstan\Reflection;
namespace Yii\PHPStan\Reflection;

use PHPStan\Reflection\ClassReflection;
use PHPStan\Reflection\MethodReflection;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace yii\phpstan\Reflection;
namespace Yii\PHPStan\Reflection;

use PHPStan\Analyser\OutOfClassScope;
use PHPStan\Reflection\ClassReflection;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace yii\phpstan\Reflection;
namespace Yii\PHPStan\Reflection;

use PHPStan\Analyser\OutOfClassScope;
use PHPStan\Reflection\ClassReflection;
Expand Down
2 changes: 1 addition & 1 deletion src/Reflection/UserPropertiesClassReflectionExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace yii\phpstan\Reflection;
namespace Yii\PHPStan\Reflection;

use PHPStan\Reflection\Annotations\AnnotationsPropertiesClassReflectionExtension;
use PHPStan\Reflection\ClassReflection;
Expand Down
2 changes: 1 addition & 1 deletion src/ServiceMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace yii\phpstan;
namespace Yii\PHPStan;

use PhpParser\Node;
use yii\base\BaseObject;
Expand Down
2 changes: 1 addition & 1 deletion src/Type/ActiveQueryDynamicMethodReturnTypeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace yii\phpstan\Type;
namespace Yii\PHPStan\Type;

use PhpParser\Node\Arg;
use PhpParser\Node\Expr\MethodCall;
Expand Down
2 changes: 1 addition & 1 deletion src/Type/ActiveQueryObjectType.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace yii\phpstan\Type;
namespace Yii\PHPStan\Type;

use PHPStan\Type\ObjectType;
use PHPStan\Type\VerbosityLevel;
Expand Down
2 changes: 1 addition & 1 deletion src/Type/ActiveRecordDynamicMethodReturnTypeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace yii\phpstan\Type;
namespace Yii\PHPStan\Type;

use PhpParser\Node\Arg;
use PhpParser\Node\Expr\MethodCall;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace yii\phpstan\Type;
namespace Yii\PHPStan\Type;

use PhpParser\Node\Expr\StaticCall;
use PhpParser\Node\Name;
Expand Down
2 changes: 1 addition & 1 deletion src/Type/ActiveRecordObjectType.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace yii\phpstan\Type;
namespace Yii\PHPStan\Type;

use PHPStan\TrinaryLogic;
use PHPStan\Type\Constant\ConstantStringType;
Expand Down
4 changes: 2 additions & 2 deletions src/Type/ContainerDynamicMethodReturnTypeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace yii\phpstan\Type;
namespace Yii\PHPStan\Type;

use PhpParser\Node\Arg;
use PhpParser\Node\Expr\MethodCall;
Expand All @@ -12,8 +12,8 @@
use PHPStan\Type\DynamicMethodReturnTypeExtension;
use PHPStan\Type\ObjectType;
use PHPStan\Type\Type;
use yii\phpstan\ServiceMap;
use yii\di\Container;
use Yii\PHPStan\ServiceMap;

final class ContainerDynamicMethodReturnTypeExtension implements DynamicMethodReturnTypeExtension
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace yii\phpstan\Type;
namespace Yii\PHPStan\Type;

use PhpParser\Node\Arg;
use PhpParser\Node\Expr\ConstFetch;
Expand Down
6 changes: 3 additions & 3 deletions tests/ServiceMapTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);

namespace yii\phpstan\tests;
namespace Yii\PHPStan\Tests;

use PhpParser\Node\Scalar\String_;
use PHPUnit\Framework\TestCase;
use yii\phpstan\ServiceMap;
use yii\phpstan\tests\Yii\MyActiveRecord;
use Yii\PHPStan\ServiceMap;
use Yii\PHPStan\Tests\Yii\MyActiveRecord;

final class ServiceMapTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Yii/MyActiveRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace yii\phpstan\tests\Yii;
namespace Yii\PHPStan\Tests\Yii;

/**
* @property bool $flag
Expand Down
2 changes: 1 addition & 1 deletion tests/Yii/MyController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace yii\phpstan\tests\Yii;
namespace Yii\PHPStan\Tests\Yii;

final class MyController extends \yii\web\Controller
{
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/yii-config-valid.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

use yii\phpstan\tests\Yii\MyActiveRecord;
use Yii\PHPStan\Tests\Yii\MyActiveRecord;

return [
'components' => [
Expand Down

0 comments on commit 304359c

Please sign in to comment.