Open hostep opened 3 years ago
Hi @hostep. Thank you for your report. To help us process this issue please make sure that you provided sufficient information.
Please, add a comment to assign the issue: @magento I am working on this
Just ran into the same issue. Would love to see this fixed. For now, I disabled the magento-coding-standard checks in our CI pipeline in favor of phpstan.
Although this is not how it should be, and this issue should be addressed correctly, you might skip the error detection by removing any space within the parameter's type section:
/**
* @param array<array<string,mixed>> $categoryData
*/
Preconditions
This started happening after upgrading the coding-standard library from version 6 to version 10 on a custom module of mine.
I suspect that this library currently can't deal wit phpstan-style array argument types (and psalm has the same concept btw)
Steps to reproduce
declare(strict_types=1);
namespace Whatever;
use Symfony\Component\Console\Output\OutputInterface;
class SomeClass { /**
Expected result
Actual result