Skip to content
Snippets Groups Projects
Commit 0621db8a authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

Revert "Fix psalm issues."

This reverts commit 9ad60fe1.
parent 9ad60fe1
No related branches found
No related tags found
No related merge requests found
...@@ -49,7 +49,6 @@ class Crypto ...@@ -49,7 +49,6 @@ class Crypto
// authenticate the ciphertext // authenticate the ciphertext
if (self::secureCompare(hash_hmac('sha256', $iv.$msg, substr($key, 64, 64), true), $hmac)) { if (self::secureCompare(hash_hmac('sha256', $iv.$msg, substr($key, 64, 64), true), $hmac)) {
/** @var string|false $plaintext */
$plaintext = openssl_decrypt( $plaintext = openssl_decrypt(
$msg, $msg,
'AES-256-CBC', 'AES-256-CBC',
......
...@@ -756,7 +756,6 @@ class HTTP ...@@ -756,7 +756,6 @@ class HTTP
{ {
$cfg = \SimpleSAML_Configuration::getInstance(); $cfg = \SimpleSAML_Configuration::getInstance();
$baseDir = $cfg->getBaseDir(); $baseDir = $cfg->getBaseDir();
/** @var string|false $cur_path */
$cur_path = realpath($_SERVER['SCRIPT_FILENAME']); $cur_path = realpath($_SERVER['SCRIPT_FILENAME']);
// make sure we got a string from realpath() // make sure we got a string from realpath()
$cur_path = is_string($cur_path) ? $cur_path : ''; $cur_path = is_string($cur_path) ? $cur_path : '';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment