Skip to content

Commit 0c23e0a

Browse files
authored
Merge pull request #308 from gsteel/v2/step-validator-deprecations
`Step` validator deprecations
2 parents 245cd10 + f8a8161 commit 0c23e0a

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

psalm-baseline.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1956,6 +1956,10 @@
19561956
</UndefinedMethod>
19571957
</file>
19581958
<file src="src/Step.php">
1959+
<DeprecatedMethod>
1960+
<code><![CDATA[setBaseValue]]></code>
1961+
<code><![CDATA[setStep]]></code>
1962+
</DeprecatedMethod>
19591963
<DocblockTypeContradiction>
19601964
<code><![CDATA[is_array($options)]]></code>
19611965
</DocblockTypeContradiction>
@@ -3180,6 +3184,18 @@
31803184
</PossiblyUnusedMethod>
31813185
</file>
31823186
<file src="test/StepTest.php">
3187+
<DeprecatedMethod>
3188+
<code><![CDATA[getBaseValue]]></code>
3189+
<code><![CDATA[getBaseValue]]></code>
3190+
<code><![CDATA[getStep]]></code>
3191+
<code><![CDATA[getStep]]></code>
3192+
<code><![CDATA[getStep]]></code>
3193+
<code><![CDATA[getStep]]></code>
3194+
<code><![CDATA[setBaseValue]]></code>
3195+
<code><![CDATA[setStep]]></code>
3196+
<code><![CDATA[setStep]]></code>
3197+
<code><![CDATA[setStep]]></code>
3198+
</DeprecatedMethod>
31833199
<InvalidArgument>
31843200
<code><![CDATA[$baseValue]]></code>
31853201
</InvalidArgument>

src/Step.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ public function __construct($options = [])
6565
/**
6666
* Sets the base value from which the step should be computed
6767
*
68+
* @deprecated Since 2.61.0 All option getters and setters will be removed in v3.0
69+
*
6870
* @param numeric $baseValue
6971
* @return $this
7072
*/
@@ -77,6 +79,8 @@ public function setBaseValue(mixed $baseValue)
7779
/**
7880
* Returns the base value from which the step should be computed
7981
*
82+
* @deprecated Since 2.61.0 All option getters and setters will be removed in v3.0
83+
*
8084
* @return numeric
8185
*/
8286
public function getBaseValue()
@@ -87,6 +91,8 @@ public function getBaseValue()
8791
/**
8892
* Sets the step value
8993
*
94+
* @deprecated Since 2.61.0 All option getters and setters will be removed in v3.0
95+
*
9096
* @param numeric $step
9197
* @return $this
9298
*/
@@ -99,6 +105,8 @@ public function setStep(mixed $step)
99105
/**
100106
* Returns the step value
101107
*
108+
* @deprecated Since 2.61.0 All option getters and setters will be removed in v3.0
109+
*
102110
* @return numeric
103111
*/
104112
public function getStep()

0 commit comments

Comments
 (0)