Skip to content

Commit 428a8ec

Browse files
sreichelfballiano
andauthored
Fixed undefined constant in installer (#3259)
* Fixed undefined constant * Update phpstan.dist.baseline.neon --------- Co-authored-by: Fabrizio Balliano <fabrizio.balliano@gmail.com>
1 parent f12eb44 commit 428a8ec

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

app/code/core/Mage/Install/Model/Installer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ public function createAdministrator($data)
222222
//to support old logic checking if real data was passed
223223
if (is_array($data)) {
224224
$data = $this->validateAndPrepareAdministrator($data);
225-
if (is_array(data)) {
225+
if (is_array($data)) {
226226
throw new Exception(Mage::helper('install')->__('Please correct the user data and try again.'));
227227
}
228228
}

phpstan.dist.baseline.neon

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3220,11 +3220,6 @@ parameters:
32203220
count: 1
32213221
path: app/code/core/Mage/Install/Model/Config.php
32223222

3223-
-
3224-
message: "#^Constant data not found\\.$#"
3225-
count: 1
3226-
path: app/code/core/Mage/Install/Model/Installer.php
3227-
32283223
-
32293224
message: "#^Method Mage_Install_Model_Installer\\:\\:getDataModel\\(\\) should return Mage_Install_Model_Session but returns Mage_Install_Model_Installer_Data\\|null\\.$#"
32303225
count: 1

0 commit comments

Comments
 (0)