If you switch from PHP 5.x to 7.1 you will get the following message:
"Function mcrypt_encrypt() is deprecated"
Now it is the right time to refactor this old function :-)
function encrypt(string $data, string $key, string $method): string
<?php | |
// Credit to Gábor Hojtsy | |
// http://hojtsy.hu/blog/2015-nov-11/drupal-8-multilingual-tidbits-19-content-translation-development | |
use Drupal\node\Entity\Node; | |
// Load node 4. In terms of language, this will get us an entity | |
// in the original submission language. | |
$node = Node::load(4); |
The meaning of this error is that there are two newline characters in the file, git will automatically replace CRLF with LF, so a warning is given.
warning: CRLF will be replaced by LF in [File] . The file will have its original line endings in your working directory.