-
-
Notifications
You must be signed in to change notification settings - Fork 436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mage_Eav - DOC block update #771
Conversation
- doc blocks added/fixed - PSR2 fixes (whitespaces, linebreaks, ...)
app/code/core/Mage/Eav/Block/Adminhtml/Attribute/Edit/Main/Abstract.php
Outdated
Show resolved
Hide resolved
@@ -1587,7 +1586,9 @@ public function saveAttribute(Varien_Object $object, $attributeCode) | |||
/** | |||
* Delete entity using current object's data | |||
* | |||
* @param object $object |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
int|Varien_Object ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
int|string|Varien_Object
? (numeric string?)
if (is_numeric($object)) {
$id = (int)$object;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, but for clarity I would mark it as int|varien_object to encourage passing proper it, and in the longer run making core usge ints.
But lets get anything you also agrees with to keep it going. I think we will need few more rounds of doc fixes after this initial one.
Note: todo replace
object
annotation with correct classes (round 2)