Skip to content

Commit 5f57de5

Browse files
committed
Fix a few issues
1 parent 1ac1391 commit 5f57de5

File tree

6 files changed

+47
-9
lines changed

6 files changed

+47
-9
lines changed

.idea/php.xml

Lines changed: 26 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/phpstorm-stubs.iml

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Reflection/ReflectionAttribute.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
class ReflectionAttribute implements Reflector
1111
{
1212
/**
13-
* @var non-empty-string
13+
* @var class-string<TAttributeClass>
1414
*/
1515
public string $name;
1616

@@ -33,7 +33,7 @@ private function __construct() {}
3333
/**
3434
* Gets attribute name
3535
*
36-
* @return non-empty-string The name of the attribute parameter.
36+
* @return class-string<TAttributeClass> The name of the attribute parameter.
3737
* @since 8.0
3838
*/
3939
#[Pure]

Reflection/ReflectionClass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ public function isEnum(): bool {}
705705
public function newLazyGhost(callable $initializer, int $options = 0): object {}
706706

707707
/**
708-
* @return T
708+
* @return TReflectedClass
709709
* @since 8.4
710710
*/
711711
public function newLazyProxy(callable $factory, int $options = 0): object {}

tests/Model/StubsContainer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,10 +270,10 @@ public function getEnumByHash(string $hash)
270270
}
271271

272272
/**
273-
* @param true $shouldSuitCurrentLanguageVersion
273+
* @param true $shouldSuitCurrentPhpVersion
274274
* @return PHPClass[]
275275
*/
276-
public function getCoreClasses($shouldSuitCurrentPhpVersion = true)
276+
public function getCoreClasses(bool $shouldSuitCurrentPhpVersion = true)
277277
{
278278
return array_filter($this->classes, function (PHPClass $class) use ($shouldSuitCurrentPhpVersion) {
279279
return $class->stubBelongsToCore === true && (!$shouldSuitCurrentPhpVersion || ParserUtils::entitySuitsCurrentPhpVersion($class));

tests/TestData/mutedProblems.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3097,6 +3097,19 @@
30973097
7.4
30983098
]
30993099
}
3100+
],
3101+
"methods": [
3102+
{
3103+
"name": "newInstance",
3104+
"problems": [
3105+
{
3106+
"description": "parameter mismatch",
3107+
"versions": [
3108+
"ALL"
3109+
]
3110+
}
3111+
]
3112+
}
31003113
]
31013114
},
31023115
{

0 commit comments

Comments
 (0)