Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
},
"autoload": {
"psr-4": {
"Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
"Doctrine\\Instantiator\\": "src/"
}
},
"autoload-dev": {
"psr-0": {
"DoctrineTest\\InstantiatorPerformance\\": "tests",
"DoctrineTest\\InstantiatorTest\\": "tests",
"DoctrineTest\\InstantiatorTestAsset\\": "tests"
"psr-4": {
"DoctrineTest\\InstantiatorPerformance\\": "tests/InstantiatorPerformance",
"DoctrineTest\\InstantiatorTest\\": "tests/InstantiatorTest",
"DoctrineTest\\InstantiatorTestAsset\\": "tests/InstantiatorTestAsset"
}
},
"config": {
Expand Down
2 changes: 1 addition & 1 deletion phpbench.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"runner.bootstrap": "vendor/autoload.php",
"runner.path": "tests/DoctrineTest/InstantiatorPerformance"
"runner.path": "tests/InstantiatorPerformance"
}
10 changes: 5 additions & 5 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@
</rule>

<rule ref="SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming">
<exclude-pattern>tests/DoctrineTest/InstantiatorTestAsset/AbstractClassAsset.php</exclude-pattern>
<exclude-pattern>tests/InstantiatorTestAsset/AbstractClassAsset.php</exclude-pattern>
</rule>

<rule ref="SlevomatCodingStandard.Classes.SuperfluousExceptionNaming">
<exclude-pattern>src/Doctrine/Instantiator/Exception/UnexpectedValueException.php</exclude-pattern>
<exclude-pattern>src/Doctrine/Instantiator/Exception/InvalidArgumentException.php</exclude-pattern>
<exclude-pattern>src/Exception/UnexpectedValueException.php</exclude-pattern>
<exclude-pattern>src/Exception/InvalidArgumentException.php</exclude-pattern>
</rule>

<rule ref="SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming">
<exclude-pattern>src/Doctrine/Instantiator/Exception/ExceptionInterface.php</exclude-pattern>
<exclude-pattern>src/Doctrine/Instantiator/InstantiatorInterface.php</exclude-pattern>
<exclude-pattern>src/Exception/ExceptionInterface.php</exclude-pattern>
<exclude-pattern>src/InstantiatorInterface.php</exclude-pattern>
</rule>
</ruleset>
8 changes: 4 additions & 4 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ parameters:
# PHPStan is unable to infer the return type of unserialize() in this case.
-
message: '#Method Doctrine\\Instantiator\\Instantiator\:\:buildFactory\(\) should return callable\(\): T but returns Closure\(\): mixed\.#'
path: 'src/Doctrine/Instantiator/Instantiator.php'
path: 'src/Instantiator.php'

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

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

# this trait is not meant to be use'd
-
message: '#is used zero times#'
path: 'tests/DoctrineTest/InstantiatorTestAsset/SimpleTraitAsset.php'
path: 'tests/InstantiatorTestAsset/SimpleTraitAsset.php'
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</php>

<testsuite name="Doctrine\Instantiator tests">
<directory>./tests/DoctrineTest/InstantiatorTest</directory>
<directory>./tests/InstantiatorTest</directory>
</testsuite>
<source>
<include>
Expand Down
File renamed without changes.