mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-28 21:18:46 +02:00
N°5809 Update laminas/laminas-mail from 2.16.0 to 2.22.0
This commit is contained in:
@@ -6,8 +6,8 @@ use function explode;
|
||||
use function preg_match;
|
||||
use function preg_match_all;
|
||||
use function preg_replace;
|
||||
use function str_contains;
|
||||
use function str_replace;
|
||||
use function strpos;
|
||||
|
||||
final class GpsPoint extends AbstractValidator
|
||||
{
|
||||
@@ -35,7 +35,7 @@ final class GpsPoint extends AbstractValidator
|
||||
*/
|
||||
public function isValid($value)
|
||||
{
|
||||
if (strpos($value, ',') === false) {
|
||||
if (! str_contains($value, ',')) {
|
||||
$this->error(self::INCOMPLETE_COORDINATE, $value);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user