Skip to content

Commit

Permalink
tweak: phpstan ignore node files
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Jan 2, 2025
1 parent 04cf13d commit 2c66881
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ jobs:
with:
php_version: ${{ matrix.php }}
path: src/
configuration: phpstan.neon

phpmd:
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
parameters:
paths:
- src/
excludePaths:
- src/Node84.php
12 changes: 6 additions & 6 deletions src/Node84.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ class Node84 extends DOMNode {
const TYPE_ENTITY_DECL = XML_ENTITY_DECL_NODE;
const TYPE_NAMESPACE_DECL = XML_NAMESPACE_DECL_NODE;

public const int DOCUMENT_POSITION_DISCONNECTED = 0b000001; // @phpstan-ignore-line
public const int DOCUMENT_POSITION_PRECEDING = 0b000010; // @phpstan-ignore-line
public const int DOCUMENT_POSITION_FOLLOWING = 0b000100; // @phpstan-ignore-line
public const int DOCUMENT_POSITION_CONTAINS = 0b001000; // @phpstan-ignore-line
public const int DOCUMENT_POSITION_CONTAINED_BY = 0b010000; // @phpstan-ignore-line
public const int DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0b100000; // @phpstan-ignore-line
public const int DOCUMENT_POSITION_DISCONNECTED = 0b000001;
public const int DOCUMENT_POSITION_PRECEDING = 0b000010;
public const int DOCUMENT_POSITION_FOLLOWING = 0b000100;
public const int DOCUMENT_POSITION_CONTAINS = 0b001000;
public const int DOCUMENT_POSITION_CONTAINED_BY = 0b010000;
public const int DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0b100000;

private function __construct() {}
}

0 comments on commit 2c66881

Please sign in to comment.