Skip to content

Commit afd86d7

Browse files
authored
restore SymfonyInternalSetList to allow relative paths to sets, use internally only (#837)
1 parent faac72c commit afd86d7

2 files changed

Lines changed: 28 additions & 1 deletion

File tree

rules/CodeQuality/Rector/MethodCall/ParameterBagTypedGetMethodCallRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ private function refactorFilterVarFuncCall(FuncCall $funcCall): ?MethodCall
149149
}
150150

151151
$exprArg = $funcCall->getArgs()[0];
152-
if (!$exprArg->value instanceof MethodCall) {
152+
if (! $exprArg->value instanceof MethodCall) {
153153
return null;
154154
}
155155

src/Set/SymfonyInternalSetList.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Rector\Symfony\Set;
6+
7+
/**
8+
* @api use in RectorConfig class
9+
* @internal Do not use outside of Rector core. Might change any time.
10+
*/
11+
final class SymfonyInternalSetList
12+
{
13+
/**
14+
* @var string
15+
*/
16+
public const JMS_ANNOTATIONS_TO_ATTRIBUTES = __DIR__ . '/../../config/sets/jms/annotations-to-attributes.php';
17+
18+
/**
19+
* @var string
20+
*/
21+
final public const FOS_REST_ANNOTATIONS_TO_ATTRIBUTES = __DIR__ . '/../../config/sets/fosrest/annotations-to-attributes.php';
22+
23+
/**
24+
* @var string
25+
*/
26+
final public const SENSIOLABS_ANNOTATIONS_TO_ATTRIBUTES = __DIR__ . '/../../config/sets/sensiolabs/annotations-to-attributes.php';
27+
}

0 commit comments

Comments
 (0)