Skip to content

Commit 94ca8ae

Browse files
committed
Remove Pure attributes
1 parent 74ad692 commit 94ca8ae

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

‎src/Validation.php‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
use Framework\Language\Language;
1414
use Framework\Validation\Debug\ValidationCollector;
1515
use InvalidArgumentException;
16-
use JetBrains\PhpStorm\Pure;
1716

1817
/**
1918
* Class Validation.
@@ -145,7 +144,6 @@ public function setLabel(string $field, string $label) : static
145144
*
146145
* @return string|null
147146
*/
148-
#[Pure]
149147
public function getLabel(string $field) : ?string
150148
{
151149
return $this->labels[$field] ?? null;
@@ -156,7 +154,6 @@ public function getLabel(string $field) : ?string
156154
*
157155
* @return array<string,string>
158156
*/
159-
#[Pure]
160157
public function getLabels() : array
161158
{
162159
return $this->labels;
@@ -249,7 +246,6 @@ protected function parseRule(string $rule) : array
249246
*
250247
* @return array<int,array<string,array<int,string>|string>>
251248
*/
252-
#[Pure]
253249
protected function extractRules(string $rules) : array
254250
{
255251
$result = [];
@@ -282,7 +278,6 @@ public function getFilledMessage(string $field, string $rule, array $args = [])
282278
*
283279
* @return array<string,array<int,array<string,array<int,string>|string>>>
284280
*/
285-
#[Pure]
286281
public function getRules() : array
287282
{
288283
return $this->rules;
@@ -552,7 +547,6 @@ protected function replaceArgs(array $args, array $data) : array
552547
*
553548
* @return array<string,mixed>
554549
*/
555-
#[Pure]
556550
protected function setEqualsField(array $rule) : array
557551
{
558552
if ($rule['rule'] === 'equals' || $rule['rule'] === 'notEquals') {

0 commit comments

Comments
 (0)