Skip to content

Commit 41455db

Browse files
authored
Merge pull request #151 from greg0ire/psr-4
Use shallower trees
2 parents 27e0215 + 174e40c commit 41455db

29 files changed

+16
-16
lines changed

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@
2929
},
3030
"autoload": {
3131
"psr-4": {
32-
"Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
32+
"Doctrine\\Instantiator\\": "src/"
3333
}
3434
},
3535
"autoload-dev": {
36-
"psr-0": {
37-
"DoctrineTest\\InstantiatorPerformance\\": "tests",
38-
"DoctrineTest\\InstantiatorTest\\": "tests",
39-
"DoctrineTest\\InstantiatorTestAsset\\": "tests"
36+
"psr-4": {
37+
"DoctrineTest\\InstantiatorPerformance\\": "tests/InstantiatorPerformance",
38+
"DoctrineTest\\InstantiatorTest\\": "tests/InstantiatorTest",
39+
"DoctrineTest\\InstantiatorTestAsset\\": "tests/InstantiatorTestAsset"
4040
}
4141
},
4242
"config": {

phpbench.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"runner.bootstrap": "vendor/autoload.php",
3-
"runner.path": "tests/DoctrineTest/InstantiatorPerformance"
3+
"runner.path": "tests/InstantiatorPerformance"
44
}

phpcs.xml.dist

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@
2222
</rule>
2323

2424
<rule ref="SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming">
25-
<exclude-pattern>tests/DoctrineTest/InstantiatorTestAsset/AbstractClassAsset.php</exclude-pattern>
25+
<exclude-pattern>tests/InstantiatorTestAsset/AbstractClassAsset.php</exclude-pattern>
2626
</rule>
2727

2828
<rule ref="SlevomatCodingStandard.Classes.SuperfluousExceptionNaming">
29-
<exclude-pattern>src/Doctrine/Instantiator/Exception/UnexpectedValueException.php</exclude-pattern>
30-
<exclude-pattern>src/Doctrine/Instantiator/Exception/InvalidArgumentException.php</exclude-pattern>
29+
<exclude-pattern>src/Exception/UnexpectedValueException.php</exclude-pattern>
30+
<exclude-pattern>src/Exception/InvalidArgumentException.php</exclude-pattern>
3131
</rule>
3232

3333
<rule ref="SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming">
34-
<exclude-pattern>src/Doctrine/Instantiator/Exception/ExceptionInterface.php</exclude-pattern>
35-
<exclude-pattern>src/Doctrine/Instantiator/InstantiatorInterface.php</exclude-pattern>
34+
<exclude-pattern>src/Exception/ExceptionInterface.php</exclude-pattern>
35+
<exclude-pattern>src/InstantiatorInterface.php</exclude-pattern>
3636
</rule>
3737
</ruleset>

phpstan.neon.dist

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ parameters:
1313
# PHPStan is unable to infer the return type of unserialize() in this case.
1414
-
1515
message: '#Method Doctrine\\Instantiator\\Instantiator\:\:buildFactory\(\) should return callable\(\): T but returns Closure\(\): mixed\.#'
16-
path: 'src/Doctrine/Instantiator/Instantiator.php'
16+
path: 'src/Instantiator.php'
1717

1818
# dynamic properties confuse static analysis
1919
-
2020
message: '#Access to an undefined property object::\$foo\.#'
21-
path: 'tests/DoctrineTest/InstantiatorTest/InstantiatorTest.php'
21+
path: 'tests/InstantiatorTest/InstantiatorTest.php'
2222

2323
# The property is static, we cannot use templating here
2424
-
2525
message: '#instantiate\(\) should return#'
26-
path: 'src/Doctrine/Instantiator/Instantiator.php'
26+
path: 'src/Instantiator.php'
2727

2828
# this trait is not meant to be use'd
2929
-
3030
message: '#is used zero times#'
31-
path: 'tests/DoctrineTest/InstantiatorTestAsset/SimpleTraitAsset.php'
31+
path: 'tests/InstantiatorTestAsset/SimpleTraitAsset.php'

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</php>
1414

1515
<testsuite name="Doctrine\Instantiator tests">
16-
<directory>./tests/DoctrineTest/InstantiatorTest</directory>
16+
<directory>./tests/InstantiatorTest</directory>
1717
</testsuite>
1818
<source>
1919
<include>

src/Doctrine/Instantiator/Exception/ExceptionInterface.php renamed to src/Exception/ExceptionInterface.php

File renamed without changes.
File renamed without changes.
File renamed without changes.

src/Doctrine/Instantiator/Instantiator.php renamed to src/Instantiator.php

File renamed without changes.

src/Doctrine/Instantiator/InstantiatorInterface.php renamed to src/InstantiatorInterface.php

File renamed without changes.

0 commit comments

Comments
 (0)