Total Complexity | 2 |
Total Lines | 12 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
25 | class TransformStringToNumber implements ArgumentTransformer |
||
26 | { |
||
27 | private const PATTERN = '/^(\d+)$/'; |
||
28 | |||
29 | public function supportsDefinitionAndArgument(DefinitionCall $definitionCall, $argumentIndex, $argumentValue) |
||
32 | } |
||
33 | |||
34 | public function transformArgument(DefinitionCall $definitionCall, $argumentIndex, $argumentValue) |
||
39 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: