for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Genkgo\Mail\Protocol;
/**
* Class CryptoConstant
* @package Genkgo\Mail\Protocol
*/
final class CryptoConstant
{
* This might be changed after https://github.com/php/php-src/pull/2518
*
* @param string $phpVersion
* @return int
public static function getDefaultMethod(string $phpVersion)
$phpVersion
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT | STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT | STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT;
}
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.