-
-
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
Fixed null parameter warning in DataFlow Profiles #3827
Conversation
Co-authored-by: Fabrizio Balliano <fabrizio.balliano@gmail.com>
This reverts commit 45ac9b9.
mmm I think phpstan doesn't know that strlen can return a negative number :-\ |
@fballiano - Tested a bit. Without changing that code, I guess the only way is to ignore the PHPStran error adding above // see: https://github.com/phpstan/phpstan/issues/10570
// @phpstan-ignore-next-line |
app/code/core/Mage/Adminhtml/Block/System/Convert/Gui/Edit/Tab/Wizard.php
Outdated
Show resolved
Hide resolved
…/Wizard.php Co-authored-by: Ng Kiat Siong <kiatsiong.ng@gmail.com>
@fballiano - I was just about to make the same change. It could not be otherwise in this case. |
yep :-) let's see if phpstan accept that instruction also with a comment and I'll directly merge it :-) |
all green, I'll consider the past comments as reviews (since the code is the suggested one) and fast forward to merge |
Fix for issue #3810
Test environment
Steps to reproduce this issue
1 - Go to the Backend > System > Import / Export > Dataflow Profiles
2 - Click/Edit on any of the listed profiles. In my case there are 6 profiles
You will get this error
This is the PHP file and the line:
/app/code/core/Mage/Adminhtml/Block/System/Convert/Gui/Edit/Tab/Wizard.php on line 95
The same error appears if you click the [Add New Profile] button.