Skip to content

Commit 2b927b8

Browse files
authored
change: use Syntro as vendor in namespace (#7)
1 parent 7608f41 commit 2b927b8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+105
-105
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
},
4141
"autoload": {
4242
"psr-4": {
43-
"Symbiote\\SilverstripePHPStan\\": "src/",
44-
"Symbiote\\SilverstripePHPStan\\Tests\\": "tests/"
43+
"Syntro\\SilverstripePHPStan\\": "src/",
44+
"Syntro\\SilverstripePHPStan\\Tests\\": "tests/"
4545
}
4646
},
4747
"extra": {

phpstan.neon

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,43 +17,43 @@ services:
1717
# This rule will throw an error if you `return false` from a RequestFilter::preRequest() method
1818
# as in SilverStripe 3.X, this throws an uncaught exception in the site.
1919
-
20-
class: Symbiote\SilverstripePHPStan\Rule\RequestFilterPreRequestRule
20+
class: Syntro\SilverstripePHPStan\Rule\RequestFilterPreRequestRule
2121
tags:
2222
- phpstan.rules.rule
2323
# This adds additional methods from SilverStripe extensions, as well as determining proper
2424
# types when has_one() magic methods.
2525
-
26-
class: Symbiote\SilverstripePHPStan\Reflection\MethodClassReflectionExtension
26+
class: Syntro\SilverstripePHPStan\Reflection\MethodClassReflectionExtension
2727
tags:
2828
- phpstan.broker.methodsClassReflectionExtension
2929
# This adds additional properties from 'db', 'has_one' and other config fields to
3030
# determine what types are returned for magic __get's
3131
-
32-
class: Symbiote\SilverstripePHPStan\Reflection\PropertyClassReflectionExtension
32+
class: Syntro\SilverstripePHPStan\Reflection\PropertyClassReflectionExtension
3333
tags:
3434
- phpstan.broker.propertiesClassReflectionExtension
3535
# This adds additional type info to `DataObject::get()` so that it knows what class
3636
# while be returned when iterating.
3737
-
38-
class: Symbiote\SilverstripePHPStan\Type\DataObjectGetStaticReturnTypeExtension
38+
class: Syntro\SilverstripePHPStan\Type\DataObjectGetStaticReturnTypeExtension
3939
tags:
4040
- phpstan.broker.dynamicStaticMethodReturnTypeExtension
4141
# This allows `singleton("File")` calls to understand the exact classes being returned
4242
# by using your configuration. (ie. uses Injector information if it's set)
4343
-
44-
class: Symbiote\SilverstripePHPStan\Type\SingletonReturnTypeExtension
44+
class: Syntro\SilverstripePHPStan\Type\SingletonReturnTypeExtension
4545
tags:
4646
- phpstan.broker.dynamicFunctionReturnTypeExtension
4747
# This allows `Injector::inst()->get("File")` calls to understand the exact classes being returned
4848
# by using your configuration. (ie. uses Injector information if it's set)
4949
-
50-
class: Symbiote\SilverstripePHPStan\Type\InjectorReturnTypeExtension
50+
class: Syntro\SilverstripePHPStan\Type\InjectorReturnTypeExtension
5151
tags:
5252
- phpstan.broker.dynamicMethodReturnTypeExtension
5353
# This allows `$this->getOwner()` to understand the possible types that it could
5454
# return by seeing what classes are using that extension currently.
5555
-
56-
class: Symbiote\SilverstripePHPStan\Type\ExtensionReturnTypeExtension
56+
class: Syntro\SilverstripePHPStan\Type\ExtensionReturnTypeExtension
5757
tags:
5858
- phpstan.broker.dynamicMethodReturnTypeExtension
5959
# This makes a DataList keep it's current type information as-is when calling
@@ -62,34 +62,34 @@ services:
6262
# This will also allow "first"/"last" calls and similar to return the correct type.
6363
#
6464
-
65-
class: Symbiote\SilverstripePHPStan\Type\DataListReturnTypeExtension
65+
class: Syntro\SilverstripePHPStan\Type\DataListReturnTypeExtension
6666
tags:
6767
- phpstan.broker.dynamicMethodReturnTypeExtension
6868
# This makes calls to `dbObject` and `newClassInstance` return the correct type info
6969
-
70-
class: Symbiote\SilverstripePHPStan\Type\DataObjectReturnTypeExtension
70+
class: Syntro\SilverstripePHPStan\Type\DataObjectReturnTypeExtension
7171
tags:
7272
- phpstan.broker.dynamicMethodReturnTypeExtension
7373

7474
-
75-
class: Symbiote\SilverstripePHPStan\Type\FormFieldReturnTypeExtension
75+
class: Syntro\SilverstripePHPStan\Type\FormFieldReturnTypeExtension
7676
tags:
7777
- phpstan.broker.dynamicMethodReturnTypeExtension
7878

7979
# This makes calls to `DBField::create_field('HTMLText', $value)` return the correct type info
8080
# ie. The injectored type of the first parameter
8181
-
82-
class: Symbiote\SilverstripePHPStan\Type\DBFieldStaticReturnTypeExtension
82+
class: Syntro\SilverstripePHPStan\Type\DBFieldStaticReturnTypeExtension
8383
tags:
8484
- phpstan.broker.dynamicStaticMethodReturnTypeExtension
8585

8686
# Special handling for ->hasMethod() checks
8787
-
88-
class: Symbiote\SilverstripePHPStan\Type\HasMethodTypeSpecifyingExtension
88+
class: Syntro\SilverstripePHPStan\Type\HasMethodTypeSpecifyingExtension
8989
tags:
9090
- phpstan.typeSpecifier.methodTypeSpecifyingExtension
9191
# Special handling for configuration properties
9292
-
93-
class: Symbiote\SilverstripePHPStan\Reflection\ReadWritePropertiesExtension
93+
class: Syntro\SilverstripePHPStan\Reflection\ReadWritePropertiesExtension
9494
tags:
9595
- phpstan.properties.readWriteExtension

src/ClassHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php declare(strict_types = 1);
22

3-
namespace Symbiote\SilverstripePHPStan;
3+
namespace Syntro\SilverstripePHPStan;
44

55
use SilverStripe\Core\ClassInfo;
66

src/ConfigHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php declare(strict_types = 1);
22

3-
namespace Symbiote\SilverstripePHPStan;
3+
namespace Syntro\SilverstripePHPStan;
44

55
use PHPStan\Type\ObjectType;
66

src/Reflection/CachedMethod.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php declare(strict_types = 1);
22

3-
namespace Symbiote\SilverstripePHPStan\Reflection;
3+
namespace Syntro\SilverstripePHPStan\Reflection;
44

55
use PHPStan\Reflection\ClassReflection;
66
use PHPStan\Reflection\MethodReflection;

src/Reflection/ComponentDBFieldProperty.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php declare(strict_types = 1);
22

3-
namespace Symbiote\SilverstripePHPStan\Reflection;
3+
namespace Syntro\SilverstripePHPStan\Reflection;
44

5-
use Symbiote\SilverstripePHPStan\Utility;
5+
use Syntro\SilverstripePHPStan\Utility;
66
use PHPStan\Reflection\ClassReflection;
77
use PHPStan\Reflection\PropertyReflection;
88
use PHPStan\Type\Type;

src/Reflection/ComponentHasManyMethod.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php declare(strict_types = 1);
22

3-
namespace Symbiote\SilverstripePHPStan\Reflection;
3+
namespace Syntro\SilverstripePHPStan\Reflection;
44

5-
use Symbiote\SilverstripePHPStan\ClassHelper;
6-
use Symbiote\SilverstripePHPStan\Type\DataListType;
5+
use Syntro\SilverstripePHPStan\ClassHelper;
6+
use Syntro\SilverstripePHPStan\Type\DataListType;
77
use PHPStan\Reflection\ClassReflection;
88
use PHPStan\Reflection\ClassMemberReflection;
99
use PHPStan\Reflection\MethodReflection;

src/Reflection/ComponentHasOneMethod.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php declare(strict_types = 1);
22

3-
namespace Symbiote\SilverstripePHPStan\Reflection;
3+
namespace Syntro\SilverstripePHPStan\Reflection;
44

55
use PHPStan\Reflection\ClassReflection;
66
use PHPStan\Reflection\MethodReflection;

src/Reflection/ComponentHasOneProperty.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php declare(strict_types = 1);
22

3-
namespace Symbiote\SilverstripePHPStan\Reflection;
3+
namespace Syntro\SilverstripePHPStan\Reflection;
44

55
use PHPStan\Reflection\ClassReflection;
66
use PHPStan\Reflection\PropertyReflection;

src/Reflection/ComponentManyManyMethod.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php declare(strict_types = 1);
22

3-
namespace Symbiote\SilverstripePHPStan\Reflection;
3+
namespace Syntro\SilverstripePHPStan\Reflection;
44

5-
use Symbiote\SilverstripePHPStan\ClassHelper;
6-
use Symbiote\SilverstripePHPStan\Type\DataListType;
5+
use Syntro\SilverstripePHPStan\ClassHelper;
6+
use Syntro\SilverstripePHPStan\Type\DataListType;
77
use PHPStan\Reflection\ClassReflection;
88
use PHPStan\Reflection\MethodReflection;
99
use PHPStan\Reflection\FunctionVariant;

0 commit comments

Comments
 (0)