Skip to content

Commit 3d1b9d7

Browse files
committed
#84 - Enable verbose PHPStan output and add bleedingEdge config for debugging
1 parent ce72138 commit 3d1b9d7

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/phpstan.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,7 @@ jobs:
117117
- name: Run PHPStan
118118
working-directory: magento2
119119
run: |
120-
vendor/bin/phpstan analyse -c vendor/openforgeproject/mageforge/phpstan.neon vendor/openforgeproject/mageforge/src
120+
echo "PHPStan Version:"
121+
vendor/bin/phpstan --version
122+
echo "Running PHPStan Analysis with verbose output..."
123+
vendor/bin/phpstan analyse -vvv -c vendor/openforgeproject/mageforge/phpstan.neon vendor/openforgeproject/mageforge/src

phpstan.neon

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
includes:
2+
- phar://phpstan.phar/conf/bleedingEdge.neon
3+
14
parameters:
25
level: 5
36
paths:

src/Model/TemplateEngine/Decorator/InspectorHintsFactory.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@
1313
*/
1414
class InspectorHintsFactory
1515
{
16-
/**
17-
* @param Random $random
18-
* @phpstan-ignore property.onlyWritten
19-
*/
2016
public function __construct(
2117
private readonly Random $random
2218
) {

0 commit comments

Comments
 (0)