Skip to content

Commit

Permalink
PhpParser Name requires a non-empty-string or non-empty-array<string>
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Apr 12, 2024
1 parent 8079876 commit 554e941
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions conf/config.neon
Expand Up @@ -175,6 +175,7 @@ parameters:
- ../stubs/ext-ds.stub
- ../stubs/ImagickPixel.stub
- ../stubs/PDOStatement.stub
- ../stubs/PhpParserName.stub
- ../stubs/date.stub
- ../stubs/ibm_db2.stub
- ../stubs/mysqli.stub
Expand Down
17 changes: 17 additions & 0 deletions stubs/PhpParserName.stub
@@ -0,0 +1,17 @@
<?php declare(strict_types=1);

namespace PhpParser\Node;

use PhpParser\NodeAbstract;

class Name extends NodeAbstract
{
/**
* Constructs a name node.
*
* @param non-empty-string|non-empty-array<string>|self $name Name as string, part array or Name instance (copy ctor)
* @param array $attributes Additional attributes
*/
public function __construct($name, array $attributes = []) {

Check failure on line 15 in stubs/PhpParserName.stub

View workflow job for this annotation

GitHub Actions / Compiler Tests

Method PhpParser\Node\Name::__construct() has parameter $attributes with no value type specified in iterable type array.

Check failure on line 15 in stubs/PhpParserName.stub

View workflow job for this annotation

GitHub Actions / Integration tests (ubuntu-latest)

Method PhpParser\Node\Name::__construct() has parameter $attributes with no value type specified in iterable type array.

Check failure on line 15 in stubs/PhpParserName.stub

View workflow job for this annotation

GitHub Actions / Result cache E2E tests (cd e2e/result-cache-1 echo -n > phpstan-baseline.neon ../../bin/phpstan -...

Method PhpParser\Node\Name::__construct() has parameter $attributes with no value type specified in iterable type array.

Check failure on line 15 in stubs/PhpParserName.stub

View workflow job for this annotation

GitHub Actions / Integration tests (windows-latest)

Method PhpParser\Node\Name::__construct() has parameter $attributes with no value type specified in iterable type array.

Check failure on line 15 in stubs/PhpParserName.stub

View workflow job for this annotation

GitHub Actions / Result cache E2E tests (cd e2e/result-cache-2 echo -n > phpstan-baseline.neon ../../bin/phpstan -...

Method PhpParser\Node\Name::__construct() has parameter $attributes with no value type specified in iterable type array.

Check failure on line 15 in stubs/PhpParserName.stub

View workflow job for this annotation

GitHub Actions / Result cache E2E tests (cd e2e/result-cache-3 echo -n > phpstan-baseline.neon ../../bin/phpstan -...

Method PhpParser\Node\Name::__construct() has parameter $attributes with no value type specified in iterable type array.

Check failure on line 15 in stubs/PhpParserName.stub

View workflow job for this annotation

GitHub Actions / E2E tests (bin/phpstan analyse e2e/only-files-not-analysed-trait/src -c e2e/only-files-not-analys...

Method PhpParser\Node\Name::__construct() has parameter $attributes with no value type specified in iterable type array.

Check failure on line 15 in stubs/PhpParserName.stub

View workflow job for this annotation

GitHub Actions / Result cache E2E tests (cd e2e/result-cache-4 echo -n > phpstan-baseline.neon ../../bin/phpstan -...

Method PhpParser\Node\Name::__construct() has parameter $attributes with no value type specified in iterable type array.

Check failure on line 15 in stubs/PhpParserName.stub

View workflow job for this annotation

GitHub Actions / Result cache E2E tests (cd e2e/result-cache-5 echo -n > phpstan-baseline.neon ../../bin/phpstan -...

Method PhpParser\Node\Name::__construct() has parameter $attributes with no value type specified in iterable type array.

Check failure on line 15 in stubs/PhpParserName.stub

View workflow job for this annotation

GitHub Actions / E2E tests (cd e2e/baseline-uninit-prop-trait ../../bin/phpstan analyse --debug --configuration te...

Method PhpParser\Node\Name::__construct() has parameter $attributes with no value type specified in iterable type array.

Check failure on line 15 in stubs/PhpParserName.stub

View workflow job for this annotation

GitHub Actions / Result cache E2E tests (cd e2e/result-cache-6 echo -n > phpstan-baseline.neon ../../bin/phpstan -...

Method PhpParser\Node\Name::__construct() has parameter $attributes with no value type specified in iterable type array.

Check failure on line 15 in stubs/PhpParserName.stub

View workflow job for this annotation

GitHub Actions / Result cache E2E tests (cd e2e/result-cache-7 echo -n > phpstan-baseline.neon ../../bin/phpstan -...

Method PhpParser\Node\Name::__construct() has parameter $attributes with no value type specified in iterable type array.

Check failure on line 15 in stubs/PhpParserName.stub

View workflow job for this annotation

GitHub Actions / Result cache E2E tests (cd e2e/bug10449 ../../bin/phpstan analyze git apply patch.diff rm phpstan...

Method PhpParser\Node\Name::__construct() has parameter $attributes with no value type specified in iterable type array.

Check failure on line 15 in stubs/PhpParserName.stub

View workflow job for this annotation

GitHub Actions / Result cache E2E tests (cd e2e/bug10449b ../../bin/phpstan analyze git apply patch.diff rm phpsta...

Method PhpParser\Node\Name::__construct() has parameter $attributes with no value type specified in iterable type array.

Check failure on line 15 in stubs/PhpParserName.stub

View workflow job for this annotation

GitHub Actions / Result cache E2E tests (cd e2e/bug-9622 echo -n > phpstan-baseline.neon ../../bin/phpstan -vvv pa...

Method PhpParser\Node\Name::__construct() has parameter $attributes with no value type specified in iterable type array.

Check failure on line 15 in stubs/PhpParserName.stub

View workflow job for this annotation

GitHub Actions / Result cache E2E tests (cd e2e/bug-9622-trait echo -n > phpstan-baseline.neon ../../bin/phpstan -...

Method PhpParser\Node\Name::__construct() has parameter $attributes with no value type specified in iterable type array.

Check failure on line 15 in stubs/PhpParserName.stub

View workflow job for this annotation

GitHub Actions / Result cache E2E tests (cd e2e/result-cache-8 composer install ../../bin/phpstan echo -en '\n' >>...

Method PhpParser\Node\Name::__construct() has parameter $attributes with no value type specified in iterable type array.
}
}

0 comments on commit 554e941

Please sign in to comment.