diff --git a/Magento2/Sniffs/Legacy/_files/restricted_classes.php b/Magento2/Sniffs/Legacy/_files/restricted_classes.php index 3dedf871..3269caca 100644 --- a/Magento2/Sniffs/Legacy/_files/restricted_classes.php +++ b/Magento2/Sniffs/Legacy/_files/restricted_classes.php @@ -31,247 +31,308 @@ ], 'Zend_Json' => [ 'warning_code' => 'ZendJsonIsRestricted', - 'replacement' => 'Magento\Framework\Serialize\Serializer\Json' + 'replacement' => 'Magento\Framework\Serialize\Serializer\Json', + 'exclude' => [] ], 'Zend_Json_Exception' => [ 'warning_code' => 'ZendJsonIsRestricted', - 'replacement' => '\InvalidArgumentException' + 'replacement' => '\InvalidArgumentException', + 'exclude' => [] ], 'Zend_Acl' => [ 'warning_code' => 'ZendAclIsRestricted', - 'replacement' => 'Laminas\Permissions\Acl\Acl' + 'replacement' => 'Laminas\Permissions\Acl\Acl', + 'exclude' => [] ], 'Zend_Acl_Role' => [ 'warning_code' => 'ZendAclIsRestricted', - 'replacement' => 'Laminas\Permissions\Acl\Role\GenericRole' + 'replacement' => 'Laminas\Permissions\Acl\Role\GenericRole', + 'exclude' => [] ], 'Zend_Acl_Resource' => [ 'warning_code' => 'ZendAclIsRestricted', - 'replacement' => 'Laminas\Permissions\Acl\Resource\GenericResource' + 'replacement' => 'Laminas\Permissions\Acl\Resource\GenericResource', + 'exclude' => [] ], 'Zend_Acl_Role_Registry' => [ 'warning_code' => 'ZendAclIsRestricted', - 'replacement' => 'Laminas\Permissions\Acl\Role\Registry' + 'replacement' => 'Laminas\Permissions\Acl\Role\Registry', + 'exclude' => [] ], 'Zend_Acl_Role_Registry_Exception' => [ 'warning_code' => 'ZendAclIsRestricted', - 'replacement' => 'Laminas\Permissions\Acl\Exception\InvalidArgumentException' + 'replacement' => 'Laminas\Permissions\Acl\Exception\InvalidArgumentException', + 'exclude' => [] ], 'Zend_Acl_Exception' => [ 'warning_code' => 'ZendAclIsRestricted', - 'replacement' => 'Laminas\Permissions\Acl\Exception\InvalidArgumentException' + 'replacement' => 'Laminas\Permissions\Acl\Exception\InvalidArgumentException', + 'exclude' => [] ], 'Zend_Acl_Role_Interface' => [ 'warning_code' => 'ZendAclIsRestricted', - 'replacement' => 'Laminas\Permissions\Acl\Role\RoleInterface' + 'replacement' => 'Laminas\Permissions\Acl\Role\RoleInterface', + 'exclude' => [] ], 'Zend_Currency' => [ 'warning_code' => 'ZendAclIsRestricted', - 'replacement' => 'Magento\Framework\Currency\Data\Currency' + 'replacement' => 'Magento\Framework\Currency\Data\Currency', + 'exclude' => [] ], 'Zend_Currency_Exception' => [ 'warning_code' => 'ZendCurrencyIsRestricted', - 'replacement' => 'Magento\Framework\Currency\Exception\CurrencyException' + 'replacement' => 'Magento\Framework\Currency\Exception\CurrencyException', + 'exclude' => [] ], 'Zend_Oauth_Http_Utility' => [ 'warning_code' => 'ZendOauthIsRestricted', - 'replacement' => 'Laminas\OAuth\Http\Utility' + 'replacement' => 'Laminas\OAuth\Http\Utility', + 'exclude' => [] ], 'Zend_Measure_Weight' => [ 'warning_code' => 'ZendMeasureIsRestricted', - 'replacement' => 'Magento\Framework\Measure\Weight' + 'replacement' => 'Magento\Framework\Measure\Weight', + 'exclude' => [] ], 'Zend_Measure_Length' => [ 'warning_code' => 'ZendMeasureIsRestricted', - 'replacement' => 'Magento\Framework\Measure\Length' + 'replacement' => 'Magento\Framework\Measure\Length', + 'exclude' => [] ], 'Zend_Validate' => [ 'warning_code' => 'ZendValidateIsRestricted', - 'replacement' => 'Magento\Framework\Validator\ValidatorChain' + 'replacement' => 'Magento\Framework\Validator\ValidatorChain', + 'exclude' => [] ], 'Zend_Validate_Regex' => [ 'warning_code' => 'ZendValidateIsRestricted', - 'replacement' => 'Laminas\Validator\Regex' + 'replacement' => 'Laminas\Validator\Regex', + 'exclude' => [] ], 'Zend_Validate_Interface' => [ 'warning_code' => 'ZendValidateIsRestricted', - 'replacement' => 'Laminas\Validator\ValidatorInterface' + 'replacement' => 'Laminas\Validator\ValidatorInterface', + 'exclude' => [] ], 'Zend_Validate_EmailAddress' => [ 'warning_code' => 'ZendValidateIsRestricted', - 'replacement' => 'Magento\Framework\Validator\EmailAddress' + 'replacement' => 'Magento\Framework\Validator\EmailAddress', + 'exclude' => [] ], 'Zend_Validate_StringLength' => [ 'warning_code' => 'ZendValidateIsRestricted', - 'replacement' => 'Magento\Framework\Validator\StringLength' + 'replacement' => 'Magento\Framework\Validator\StringLength', + 'exclude' => [] ], 'Zend_Validate_Exception' => [ 'warning_code' => 'ZendValidateIsRestricted', - 'replacement' => 'Magento\Framework\Validator\ValidateException' + 'replacement' => 'Magento\Framework\Validator\ValidateException', + 'exclude' => [] ], 'Zend_Validate_File_ExcludeExtension' => [ 'warning_code' => 'ZendValidateIsRestricted', - 'replacement' => 'Laminas\Validator\File\ExcludeExtension' + 'replacement' => 'Laminas\Validator\File\ExcludeExtension', + 'exclude' => [] ], 'Zend_Validate_File_Extension' => [ 'warning_code' => 'ZendValidateIsRestricted', - 'replacement' => 'Laminas\Validator\File\Extension' + 'replacement' => 'Laminas\Validator\File\Extension', + 'exclude' => [] ], 'Zend_Validate_File_ImageSize' => [ 'warning_code' => 'ZendValidateIsRestricted', - 'replacement' => 'Laminas\Validator\File\ImageSize' + 'replacement' => 'Laminas\Validator\File\ImageSize', + 'exclude' => [] ], 'Zend_Validate_File_FilesSize' => [ 'warning_code' => 'ZendValidateIsRestricted', - 'replacement' => 'Laminas\Validator\File\FilesSize' + 'replacement' => 'Laminas\Validator\File\FilesSize', + 'exclude' => [] ], 'Zend_Validate_Alnum' => [ 'warning_code' => 'ZendValidateIsRestricted', - 'replacement' => 'Magento\Framework\Validator\Alnum' + 'replacement' => 'Magento\Framework\Validator\Alnum', + 'exclude' => [] ], 'Zend_Validate_Hostname' => [ 'warning_code' => 'ZendValidateIsRestricted', - 'replacement' => 'Magento\Framework\Validator\Hostname' + 'replacement' => 'Magento\Framework\Validator\Hostname', + 'exclude' => [] ], 'Zend_Validate_Date' => [ 'warning_code' => 'ZendValidateIsRestricted', - 'replacement' => 'Laminas\Validator\Date' + 'replacement' => 'Laminas\Validator\Date', + 'exclude' => [] ], 'Zend_Validate_Digits' => [ 'warning_code' => 'ZendValidateIsRestricted', - 'replacement' => 'Laminas\Validator\Digits' + 'replacement' => 'Laminas\Validator\Digits', + 'exclude' => [] ], 'Zend_Validate_Alpha' => [ 'warning_code' => 'ZendValidateIsRestricted', - 'replacement' => 'Laminas\I18n\Validator\Alpha' + 'replacement' => 'Laminas\I18n\Validator\Alpha', + 'exclude' => [] ], 'Zend_Validate_InArray' => [ 'warning_code' => 'ZendValidateIsRestricted', - 'replacement' => 'Laminas\Validator\InArray' + 'replacement' => 'Laminas\Validator\InArray', + 'exclude' => [] ], 'Zend_Validate_Abstract' => [ 'warning_code' => 'ZendValidateIsRestricted', - 'replacement' => 'Laminas\Validator\AbstractValidator' + 'replacement' => 'Laminas\Validator\AbstractValidator', + 'exclude' => [] ], 'Zend_Validate_NotEmpty' => [ 'warning_code' => 'ZendValidateIsRestricted', - 'replacement' => 'Magento\Framework\Validator\NotEmpty' + 'replacement' => 'Magento\Framework\Validator\NotEmpty', + 'exclude' => [] ], 'Zend_Validate_Callback' => [ 'warning_code' => 'ZendValidateIsRestricted', - 'replacement' => 'Laminas\Validator\Callback' + 'replacement' => 'Laminas\Validator\Callback', + 'exclude' => [] ], 'Zend_Validate_Ip' => [ 'warning_code' => 'ZendValidateIsRestricted', - 'replacement' => 'Laminas\Validator\Ip' + 'replacement' => 'Laminas\Validator\Ip', + 'exclude' => [] ], 'Zend_Validate_Identical' => [ 'warning_code' => 'ZendValidateIsRestricted', - 'replacement' => 'Laminas\Validator\Identical' + 'replacement' => 'Laminas\Validator\Identical', + 'exclude' => [] ], 'Zend_Validate_File_IsImage' => [ 'warning_code' => 'ZendValidateIsRestricted', - 'replacement' => 'Laminas\Validator\File\IsImage' + 'replacement' => 'Laminas\Validator\File\IsImage', + 'exclude' => [] ], 'Zend_Validate_File_Size' => [ 'warning_code' => 'ZendValidateIsRestricted', - 'replacement' => 'Laminas\Validator\File\FilesSize' + 'replacement' => 'Laminas\Validator\File\FilesSize', + 'exclude' => [] ], 'Zend_Validate_Float' => [ 'warning_code' => 'ZendValidateIsRestricted', - 'replacement' => 'Laminas\I18n\Validator\IsFloat' + 'replacement' => 'Laminas\I18n\Validator\IsFloat', + 'exclude' => [] ], 'Zend_Validate_Int' => [ 'warning_code' => 'ZendValidateIsRestricted', - 'replacement' => 'Laminas\I18n\Validator\IsInt' + 'replacement' => 'Laminas\I18n\Validator\IsInt', + 'exclude' => [] ], 'Magento\Framework\HTTP\ZendClient' => [ 'warning_code' => 'HttpZendClientIsRestricted', - 'replacement' => 'Magento\Framework\HTTP\LaminasClient' + 'replacement' => 'Magento\Framework\HTTP\LaminasClient', + 'exclude' => [] ], 'Magento\Framework\HTTP\ZendClientFactory' => [ 'warning_code' => 'HttpZendClientFactoryIsRestricted', - 'replacement' => 'Magento\Framework\HTTP\LaminasClientFactory' + 'replacement' => 'Magento\Framework\HTTP\LaminasClientFactory', + 'exclude' => [] ], 'Zend_Http_Client' => [ 'warning_code' => 'ZendHttpIsRestricted', - 'replacement' => 'Laminas\Http\Request' + 'replacement' => 'Laminas\Http\Request', + 'exclude' => [] ], 'Zend_Http_Response' => [ 'warning_code' => 'ZendHttpIsRestricted', - 'replacement' => 'Laminas\Http\Response' + 'replacement' => 'Laminas\Http\Response', + 'exclude' => [] ], 'Zend_Http_Exception' => [ 'warning_code' => 'ZendHttpIsRestricted', - 'replacement' => 'Laminas\Http\Exception\RuntimeException' + 'replacement' => 'Laminas\Http\Exception\RuntimeException', + 'exclude' => [] ], 'Zend_Http_Client_Exception' => [ 'warning_code' => 'ZendHttpIsRestricted', - 'replacement' => 'Laminas\Http\Exception\RuntimeException' + 'replacement' => 'Laminas\Http\Exception\RuntimeException', + 'exclude' => [] ], 'Zend_Http_Client_Adapter_Interface' => [ 'warning_code' => 'ZendHttpIsRestricted', - 'replacement' => 'Laminas\Http\Client\Adapter\AdapterInterface' + 'replacement' => 'Laminas\Http\Client\Adapter\AdapterInterface', + 'exclude' => [] ], 'Zend_Filter_File_Rename' => [ 'warning_code' => 'ZendFilterIsRestricted', - 'replacement' => 'Laminas\Filter\File\Rename' + 'replacement' => 'Laminas\Filter\File\Rename', + 'exclude' => [] ], 'Zend_Filter' => [ 'warning_code' => 'ZendFilterIsRestricted', - 'replacement' => 'Magento\Framework\Filter\FilterInput' + 'replacement' => 'Magento\Framework\Filter\FilterInput', + 'exclude' => [] ], 'Zend_Filter_Input' => [ 'warning_code' => 'ZendFilterIsRestricted', - 'replacement' => 'Magento\Framework\Filter\FilterInput' + 'replacement' => 'Magento\Framework\Filter\FilterInput', + 'exclude' => [] ], 'Zend_Filter_Interface' => [ 'warning_code' => 'ZendFilterIsRestricted', - 'replacement' => 'Laminas\Filter\FilterInterface' + 'replacement' => 'Laminas\Filter\FilterInterface', + 'exclude' => [] ], 'Zend_Filter_LocalizedToNormalized' => [ 'warning_code' => 'ZendFilterIsRestricted', - 'replacement' => 'Magento\Framework\Filter\LocalizedToNormalized' + 'replacement' => 'Magento\Framework\Filter\LocalizedToNormalized', + 'exclude' => [] ], 'Zend_Filter_Decrypt' => [ 'warning_code' => 'ZendFilterIsRestricted', - 'replacement' => 'Laminas\Filter\Decrypt' + 'replacement' => 'Laminas\Filter\Decrypt', + 'exclude' => [] ], 'Zend_Filter_Encrypt' => [ 'warning_code' => 'ZendFilterIsRestricted', - 'replacement' => 'Laminas\Filter\Encrypt' + 'replacement' => 'Laminas\Filter\Encrypt', + 'exclude' => [] ], 'Zend_Filter_Encrypt_Interface' => [ 'warning_code' => 'ZendFilterIsRestricted', - 'replacement' => 'Laminas\Filter\Encrypt\EncryptionAlgorithmInterface' + 'replacement' => 'Laminas\Filter\Encrypt\EncryptionAlgorithmInterface', + 'exclude' => [] ], 'Zend_Filter_Alnum' => [ 'warning_code' => 'ZendFilterIsRestricted', - 'replacement' => 'Laminas\I18n\Filter\Alnum' + 'replacement' => 'Laminas\I18n\Filter\Alnum', + 'exclude' => [] ], 'Zend_Translate_Adapter' => [ 'warning_code' => 'ZendTranslateIsRestricted', - 'replacement' => 'Laminas\I18n\View\Helper\AbstractTranslatorHelper' + 'replacement' => 'Laminas\I18n\View\Helper\AbstractTranslatorHelper', + 'exclude' => [] ], 'Zend_File_Transfer_Exception' => [ 'warning_code' => 'ZendFileIsRestricted', - 'replacement' => 'Laminas\File\Transfer\Exception\PhpEnvironmentException' + 'replacement' => 'Laminas\File\Transfer\Exception\PhpEnvironmentException', + 'exclude' => [] ], 'Zend_File_Transfer_Adapter_Http' => [ 'warning_code' => 'ZendFileIsRestricted', - 'replacement' => 'Magento\Framework\File\Http' + 'replacement' => 'Magento\Framework\File\Http', + 'exclude' => [] ], 'Zend_File_Transfer' => [ 'warning_code' => 'ZendFileIsRestricted', - 'replacement' => 'Laminas\File\Transfer\Transfer' + 'replacement' => 'Laminas\File\Transfer\Transfer', + 'exclude' => [] ], 'Zend_Date' => [ 'warning_code' => 'ZendDateIsRestricted', - 'replacement' => '\IntlDateFormatter' + 'replacement' => '\IntlDateFormatter', + 'exclude' => [] ], 'Zend_Locale_Format' => [ 'warning_code' => 'ZendLocaleFormatIsRestricted', - 'replacement' => 'Laminas\I18n\Filter\NumberParse, \NumberFormatter, \IntlDateFormatter' + 'replacement' => 'Laminas\I18n\Filter\NumberParse, \NumberFormatter, \IntlDateFormatter', + 'exclude' => [] ], 'Magento\Framework\Serialize\Serializer\Serialize' => [ 'warning_code' => 'SerializerSerializeIsRestricted',