Skip to content

Commit c99cd56

Browse files
authored
Merge pull request #16746 from raicabogdan/5.0.x-T16742
Use ReflectionParameter::getType()
2 parents 0209830 + 25f5857 commit c99cd56

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: CHANGELOG-5.0.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
### Fixed
1212

1313
- Fixed `Phalcon\Mvc\Router` to correctly handle numeric URI parts as it was in v3 [#16741](https://github.com/phalcon/cphalcon/issues/16741)
14+
- Fixed `Phalcon\Mvc\Model\Binder` to use ReflectionParameter::getType() instead of deprecated method, PHP 8.0 or higher issue. [#16742](https://github.com/phalcon/cphalcon/issues/16742)
1415

1516
### Removed
1617

Diff for: phalcon/Mvc/Model/Binder.zep

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ class Binder implements BinderInterface
183183
let paramsKeys = array_keys(params);
184184

185185
for paramKey, methodParam in methodParams {
186-
let reflectionClass = methodParam->getClass();
186+
let reflectionClass = methodParam->getType();
187187

188188
if !reflectionClass {
189189
continue;

0 commit comments

Comments
 (0)