File tree Expand file tree Collapse file tree 4 files changed +18
-11
lines changed Expand file tree Collapse file tree 4 files changed +18
-11
lines changed Original file line number Diff line number Diff line change @@ -164,15 +164,15 @@ private function getOrganizeMigrationsModes(): array
164
164
$ constPrefix = 'VERSIONS_ORGANIZATION_ ' ;
165
165
$ prefixLen = strlen ($ constPrefix );
166
166
$ refClass = new ReflectionClass ('Doctrine\Migrations\Configuration\Configuration ' );
167
- $ constsArray = $ refClass ->getConstants ();
167
+ $ constsArray = array_keys ( $ refClass ->getConstants () );
168
168
$ namesArray = [];
169
169
170
- foreach ($ constsArray as $ key => $ value ) {
171
- if (strpos ($ key , $ constPrefix ) !== 0 ) {
170
+ foreach ($ constsArray as $ constant ) {
171
+ if (strpos ($ constant , $ constPrefix ) !== 0 ) {
172
172
continue ;
173
173
}
174
174
175
- $ namesArray [] = substr ($ key , $ prefixLen );
175
+ $ namesArray [] = substr ($ constant , $ prefixLen );
176
176
}
177
177
178
178
return $ namesArray ;
Original file line number Diff line number Diff line change 35
35
"phpstan/phpstan-symfony" : " ^1.3" ,
36
36
"doctrine/orm" : " ^2.6" ,
37
37
"doctrine/persistence" : " ^2.0 || ^3 " ,
38
- "vimeo/psalm" : " ^4.22"
38
+ "psalm/plugin-phpunit" : " ^0.18.4" ,
39
+ "psalm/plugin-symfony" : " ^3 || ^5" ,
40
+ "vimeo/psalm" : " ^4.30 || ^5.15"
39
41
},
40
42
"autoload" : {
41
43
"psr-4" : { "Doctrine\\ Bundle\\ MigrationsBundle\\ " : " " },
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <files psalm-version =" 4.22 .0@fc2c6ab4d5fa5d644d8617089f012f3bb84b8703 " >
2
+ <files psalm-version =" 5.15 .0@5c774aca4746caf3d239d9c8cadb9f882ca29352 " >
3
3
<file src =" DependencyInjection/Configuration.php" >
4
- <UndefinedMethod occurrences = " 1 " >
5
- <code >root </code >
6
- </UndefinedMethod >
4
+ <UndefinedInterfaceMethod >
5
+ <code >end </code >
6
+ </UndefinedInterfaceMethod >
7
7
</file >
8
8
<file src =" DependencyInjection/DoctrineMigrationsExtension.php" >
9
- <MoreSpecificImplementedParamType occurrences = " 1 " >
9
+ <MoreSpecificImplementedParamType >
10
10
<code >$configs</code >
11
11
</MoreSpecificImplementedParamType >
12
12
</file >
Original file line number Diff line number Diff line change 2
2
<psalm
3
3
errorLevel =" 4"
4
4
phpVersion =" 8.2"
5
- resolveFromConfigFile =" true"
5
+ findUnusedBaselineEntry =" true"
6
+ findUnusedCode =" true"
6
7
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
7
8
xmlns =" https://getpsalm.org/schema/config"
8
9
xsi : schemaLocation =" https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
16
17
<directory name =" vendor" />
17
18
</ignoreFiles >
18
19
</projectFiles >
20
+ <plugins >
21
+ <pluginClass class =" Psalm\PhpUnitPlugin\Plugin" />
22
+ <pluginClass class =" Psalm\SymfonyPsalmPlugin\Plugin" />
23
+ </plugins >
19
24
</psalm >
You can’t perform that action at this time.
0 commit comments