Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/code_analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ jobs:
name: 'PHPStan'
run: vendor/bin/phpstan

-
name: 'Run StructArmed'
run: vendor/bin/structarmed analyze

name: ${{ matrix.actions.name }}
runs-on: ubuntu-latest
timeout-minutes: 5
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"symfony/yaml": "^7.4|8.0.*"
},
"require-dev": {
"boundwize/structarmed": "^0.7.12",
"doctrine/doctrine-bundle": "^2.18|^3.0",
"doctrine/orm": "^2.20|^3.0",
"phpecs/phpecs": "^2.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ public function refactor(Node $node): ?ClassMethod
continue;
}

/** @var Assign $assign */
$assign = $stmt->expr;

// we only care about initialization
Expand Down
2 changes: 1 addition & 1 deletion src/Set/DoctrineSetList.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,5 @@ final class DoctrineSetList

public const string GEDMO_ANNOTATIONS_TO_ATTRIBUTES = __DIR__ . '/../../config/sets/attributes/gedmo.php';

public const string MONGODB__ANNOTATIONS_TO_ATTRIBUTES = __DIR__ . '/../../config/sets/attributes/mongodb.php';
public const string MONGODB_ANNOTATIONS_TO_ATTRIBUTES = __DIR__ . '/../../config/sets/attributes/mongodb.php';
}
9 changes: 9 additions & 0 deletions structarmed.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

declare(strict_types=1);

use Boundwize\StructArmed\Architecture;
use Boundwize\StructArmed\Preset\Preset;

return Architecture::define()
->withPresets(Preset::PSR1(), Preset::PSR4());
Loading