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 a33e8c5 commit 737c46c
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/Node84.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
// phpcs:ignoreFile
// @phpstan-ignore classConstant.nativeTypeNotSupported
namespace Gt\Dom;

use DOMNode;
Expand Down Expand Up @@ -30,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;
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;
public const int DOCUMENT_POSITION_DISCONNECTED = 0b000001; // @phpstan-ignore classConstant.nativeTypeNotSupported

Check failure on line 32 in src/Node84.php

View workflow job for this annotation

GitHub Actions / phpstan (8.3)

No error with identifier classConstant.nativeTypeNotSupported is reported on line 32.
public const int DOCUMENT_POSITION_PRECEDING = 0b000010; // @phpstan-ignore classConstant.nativeTypeNotSupported

Check failure on line 33 in src/Node84.php

View workflow job for this annotation

GitHub Actions / phpstan (8.3)

No error with identifier classConstant.nativeTypeNotSupported is reported on line 33.
public const int DOCUMENT_POSITION_FOLLOWING = 0b000100; // @phpstan-ignore classConstant.nativeTypeNotSupported

Check failure on line 34 in src/Node84.php

View workflow job for this annotation

GitHub Actions / phpstan (8.3)

No error with identifier classConstant.nativeTypeNotSupported is reported on line 34.
public const int DOCUMENT_POSITION_CONTAINS = 0b001000; // @phpstan-ignore classConstant.nativeTypeNotSupported

Check failure on line 35 in src/Node84.php

View workflow job for this annotation

GitHub Actions / phpstan (8.3)

No error with identifier classConstant.nativeTypeNotSupported is reported on line 35.
public const int DOCUMENT_POSITION_CONTAINED_BY = 0b010000; // @phpstan-ignore classConstant.nativeTypeNotSupported

Check failure on line 36 in src/Node84.php

View workflow job for this annotation

GitHub Actions / phpstan (8.3)

No error with identifier classConstant.nativeTypeNotSupported is reported on line 36.
public const int DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0b100000; // @phpstan-ignore classConstant.nativeTypeNotSupported

Check failure on line 37 in src/Node84.php

View workflow job for this annotation

GitHub Actions / phpstan (8.3)

No error with identifier classConstant.nativeTypeNotSupported is reported on line 37.

private function __construct() {}
}

0 comments on commit 737c46c

Please sign in to comment.