original_string: public static function encodePhpSerialize( array $data ) {
  		try {
  			return serialize( $data );
  		} catch ( \Exception $ex ) {
  			self::$logger->error( 'PHP serialization failed: ' . $ex->getMessage() );
  			return null;
  		}
  	}
code: public static function encodePhpSerialize( array $data ) {
  		try {
  			return serialize( $data );
  		} catch ( \Exception $ex ) {
  			self::$logger->error( 'PHP serialization failed: ' . $ex->getMessage() );
  			return null;
  		}
  	}
code_tokens: public static function encodePhpSerialize ( array $ data ) { try { return serialize ( $ data ) ; } catch ( \ Exception $ ex ) { self :: $ logger -> error ( 'PHP serialization failed: ' . $ ex -> getMessage ( ) ) ; return null ; } }
docstring: Encode a session array to a string in 'php_serialize' format
  @note Generally you'll use self::encode() instead of this method.
  @param array $data Session data
  @return string|null Encoded string, or null on failure
docstring_tokens: Encode a session array to a string in php_serialize format