Skip to content

Commit

Permalink
Removed PHPStan stubs (#3210)
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano authored Apr 26, 2023
1 parent 998e306 commit cb6791b
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 27 deletions.
4 changes: 2 additions & 2 deletions app/code/core/Mage/Captcha/Model/Zend.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class Mage_Captcha_Model_Zend extends Zend_Captcha_Image implements Mage_Captcha
/**
* Generated word
*
* @var string|null
* @var string
*/
protected $_word;

Expand Down Expand Up @@ -483,7 +483,7 @@ protected function _setWord($word)
protected function _clearWord()
{
$this->getSession()->unsetData($this->_getFormIdKey(self::SESSION_WORD));
$this->_word = null;
$this->_word = '';
return $this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
class Mage_Eav_Model_Adminhtml_System_Config_Source_Inputtype_Validator extends Zend_Validate_InArray
{
/**
* @var array<string, string>|null
* @inheritdoc
*/
protected $_messageTemplates;

Expand All @@ -34,7 +34,7 @@ public function __construct()
$haystack = $helper->getInputTypesValidatorData();

//reset message template and set custom
$this->_messageTemplates = null;
$this->_messageTemplates = [];
$this->_initMessageTemplates();

//parent construct with options
Expand Down
11 changes: 0 additions & 11 deletions dev/phpstan/stubs/Zend_Captcha_Word.stub

This file was deleted.

9 changes: 0 additions & 9 deletions dev/phpstan/stubs/Zend_Validate_InArray.stub

This file was deleted.

3 changes: 0 additions & 3 deletions phpstan.dist.neon
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@ parameters:

# Instantiated class not found
- lib/Varien/Image/Adapter.php
stubFiles:
- dev/phpstan/stubs/Zend_Captcha_Word.stub
- dev/phpstan/stubs/Zend_Validate_InArray.stub
level: 4
checkFunctionNameCase: true
checkInternalClassCaseSensitivity: true
Expand Down

0 comments on commit cb6791b

Please sign in to comment.