Skip to content

Commit c0318bc

Browse files
committed
Fix DeprecationProviderTest for PHP < 8.0
1 parent 39950ae commit c0318bc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/PHPStan/Reflection/Deprecation/data/CustomDeprecationExtension.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ class CustomDeprecationExtension implements
3333
EnumCaseDeprecationExtension
3434
{
3535

36-
public function getClassDeprecation(ReflectionClass|ReflectionEnum $reflection): ?Deprecation
36+
/**
37+
* @param ReflectionClass|ReflectionEnum $reflection
38+
*/
39+
public function getClassDeprecation($reflection): ?Deprecation
3740
{
3841
return $this->buildDeprecation($reflection);
3942
}

0 commit comments

Comments
 (0)