Skip to content

Commit b174ad3

Browse files
committed
Call static method statically
Avoid strict warnings
1 parent 668839e commit b174ad3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/VerbalExpressions/PHPVerbalExpressions/VerbalExpressions.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function endOfLine($enable = true)
9090
*/
9191
public function then($value)
9292
{
93-
return $this->add("(".$this->sanitize($value).")");
93+
return $this->add("(".self::sanitize($value).")");
9494
}
9595

9696
/**
@@ -114,7 +114,7 @@ public function find($value)
114114
*/
115115
public function maybe($value)
116116
{
117-
return $this->add("(".$this->sanitize($value).")?");
117+
return $this->add("(".self::sanitize($value).")?");
118118
}
119119

120120
/**
@@ -141,7 +141,7 @@ public function anything()
141141
*/
142142
public function anythingBut($value)
143143
{
144-
return $this->add("([^". $this->sanitize($value) ."]*)");
144+
return $this->add("([^". self::sanitize($value) ."]*)");
145145
}
146146

147147
/**
@@ -168,7 +168,7 @@ public function something()
168168
*/
169169
public function somethingBut($value)
170170
{
171-
return $this->add("([^". $this->sanitize($value) ."]+)");
171+
return $this->add("([^". self::sanitize($value) ."]+)");
172172
}
173173

174174
/**
@@ -295,7 +295,7 @@ public function range()
295295
$arg_list = func_get_args();
296296

297297
for ($i = 0; $i < $arg_num;) {
298-
$value .= $this->sanitize($arg_list[$i++]) . "-" . $this->sanitize($arg_list[$i++]);
298+
$value .= self::sanitize($arg_list[$i++]) . "-" . self::sanitize($arg_list[$i++]);
299299
}
300300

301301
$value .= "]";
@@ -390,7 +390,7 @@ public function searchOneLine($enable = true)
390390
*/
391391
public function multiple($value)
392392
{
393-
$value = $this->sanitize($value);
393+
$value = self::sanitize($value);
394394

395395
switch (substr($value, -1)) {
396396
case '+':

0 commit comments

Comments
 (0)