phpstan-magento icon indicating copy to clipboard operation
phpstan-magento copied to clipboard

Magento specific extension for PHPStan

Results 18 phpstan-magento issues
Sort by recently updated
recently updated
newest added

Hello! I've this error on CI: ``` Parse error: syntax error, unexpected 'string' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in /builds/qkSMQzG3/0/applications/integration-magento2/magento2.3-2.4/vendor/bitexpert/phpstan-magento/src/bitExpert/PHPStan/Magento/Autoload/TestFrameworkAutoloader.php on line 21 ``` Typed properties have been...

Hi there! Just updated from v0.23.1 (and phpstan 1.7) to v0.24.0 (and phpstan 1.8). Since the update I'm getting the following error when running phpstan: ``` Child process error (exit...

The problem in #243 shows that we need integration tests to detect real-world problems with newer PHPStan releases. Since we have some dependencies deeper in PHPStan's core, things can break....

Build a GitHub Action to let phpstan-magento run in GitHub build pipelines automatically. Check what the extdn people have done for their actions and adapt https://github.com/extdn/github-actions-m2

My current module has a preference over a class set on the di.xml file. I'm using the factory on the constructor of a overwrite. When using a method that only...

Similar to what happens in PHPStan core, add tips to the rule errors we output to provide some more background information on why the rule was triggered and how to...

Add a PHPStan rule to detect calls for getResource() in Model classes. Calling getResource() is marked as deprecated since it's not considered a good practice any more, see [this thread](https://magento.stackexchange.com/questions/318074/load-resource-models-without-using-deprecated-getresource)...

The Magento [ExtDN](https://github.com/extdn) people have a Codesniffer sniff in place to detect calls to the `setTemplate()` method in a block class. Read about their reasoning [here](https://github.com/extdn/extdn-phpcs/blob/master/Extdn/Sniffs/Blocks/SetTemplateInBlockSniff.md). It probably makes sense...

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start)...

dependencies

Updates the requirements on [nikic/php-parser](https://github.com/nikic/PHP-Parser) to permit the latest version. Release notes Sourced from nikic/php-parser's releases. PHP-Parser 5.0.2 Fixed Fix handling of indentation on next line after opening PHP tag...

dependencies