$encryptionAlgorithms * @param null|array $contentEncryptionAlgorithm * @param null|string[] $compressionMethods */ public function create( array $encryptionAlgorithms, null|array $contentEncryptionAlgorithm = null, null|array $compressionMethods = null ): JWEBuilder { if ($contentEncryptionAlgorithm !== null) { trigger_deprecation( 'web-token/jwt-library', '3.3.0', 'The parameter "$contentEncryptionAlgorithm" is deprecated and will be removed in 4.0.0. Please set "null" instead.' ); $encryptionAlgorithms = array_merge($encryptionAlgorithms, $contentEncryptionAlgorithm); } $encryptionAlgorithmManager = $this->algorithmManagerFactory->create($encryptionAlgorithms); $compressionMethodManager = $compressionMethods === null ? null : $this->compressionMethodManagerFactory?->create( $compressionMethods ); return new JWEBuilder($encryptionAlgorithmManager, null, $compressionMethodManager); } }