Skip to content

Commit 0834ff5

Browse files
Fixed return type-hint error in PHP 7.2 & 7.3
1 parent 5f18381 commit 0834ff5

File tree

6 files changed

+19
-1
lines changed

6 files changed

+19
-1
lines changed

src/Locate/Annotation.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ public function __construct(iterable $annotations)
3838
$this->annotations = $annotations;
3939
}
4040

41-
abstract public function getReflection(): \Reflector;
41+
/**
42+
* Get the reflection object used in annotation.
43+
*/
44+
abstract public function getReflection();
4245

4346
/**
4447
* {@inheritdoc}

src/Locate/Class_.php

+3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ public function __construct(iterable $annotations, \ReflectionClass $reflection)
3434
parent::__construct($annotations);
3535
}
3636

37+
/**
38+
* {@inheritdoc}
39+
*/
3740
public function getReflection(): \ReflectionClass
3841
{
3942
return $this->reflection;

src/Locate/Constant.php

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ public function __construct(iterable $annotations, \ReflectionClassConstant $ref
2525
parent::__construct($annotations);
2626
}
2727

28+
/**
29+
* {@inheritdoc}
30+
*/
2831
public function getReflection(): \ReflectionClassConstant
2932
{
3033
return $this->reflection;

src/Locate/Function_.php

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ public function __construct(iterable $annotations, \ReflectionFunction $reflecti
2828
parent::__construct($annotations);
2929
}
3030

31+
/**
32+
* {@inheritdoc}
33+
*/
3134
public function getReflection(): \ReflectionFunction
3235
{
3336
return $this->reflection;

src/Locate/Method.php

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ public function __construct(iterable $annotations, \ReflectionMethod $reflection
2828
parent::__construct($annotations);
2929
}
3030

31+
/**
32+
* {@inheritdoc}
33+
*/
3134
public function getReflection(): \ReflectionMethod
3235
{
3336
return $this->reflection;

src/Locate/Property.php

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ public function __construct(iterable $annotations, \ReflectionProperty $reflecti
2525
parent::__construct($annotations);
2626
}
2727

28+
/**
29+
* {@inheritdoc}
30+
*/
2831
public function getReflection(): \ReflectionProperty
2932
{
3033
return $this->reflection;

0 commit comments

Comments
 (0)