Skip to content
This repository was archived by the owner on Dec 26, 2017. It is now read-only.

Commit cabb750

Browse files
author
Cliff Odijk
committed
Ignore deprecated functions see issue for details #6
1 parent 372533d commit cabb750

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/Encrypter/NelmioEncrypter.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __construct($secret, $algorithm)
2727
$this->algorithm));
2828
}
2929

30-
$this->ivSize = mcrypt_enc_get_iv_size($this->module);
30+
$this->ivSize = @mcrypt_enc_get_iv_size($this->module);
3131
}
3232

3333
public function encrypt($input)
@@ -36,11 +36,11 @@ public function encrypt($input)
3636
return;
3737
}
3838

39-
$iv = mcrypt_create_iv($this->ivSize, MCRYPT_RAND);
39+
$iv = @mcrypt_create_iv($this->ivSize, MCRYPT_RAND);
4040

41-
mcrypt_generic_init($this->module, $this->secret, $iv);
41+
@mcrypt_generic_init($this->module, $this->secret, $iv);
4242

43-
return rtrim(base64_encode($iv.mcrypt_generic($this->module, (string) $input)), '=');
43+
return rtrim(base64_encode($iv.@mcrypt_generic($this->module, (string) $input)), '=');
4444
}
4545

4646
public function decrypt($input)
@@ -64,6 +64,6 @@ public function decrypt($input)
6464
return;
6565
}
6666

67-
return rtrim(mdecrypt_generic($this->module, $encryptedData), "\0");
67+
return rtrim(@mdecrypt_generic($this->module, $encryptedData), "\0");
6868
}
6969
}

0 commit comments

Comments
 (0)