Permalink
Browse files

change is_a to instanceof

  • Loading branch information...
1 parent 3eda845 commit bc0ec335bf5f375b44ea31cf6f2c9a965c0b48d8 @henrikbjorn henrikbjorn committed Dec 14, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 Request/ParamConverter/ParamConverterManager.php
@@ -41,9 +41,10 @@ public function apply(Request $request, $configurations)
foreach ($configurations as $configuration) {
// If the value is already an instance of the class we are trying to convert it into
- // we should continue as no convertion is required `is_a` was un-deprecated in 5.3
+ // we should continue as no convertion is required
$value = $request->attributes->get($configuration->getName());
- if (is_object($value) && is_a($value, $configuration->getClass())) {
+ $className = $configuration->getClass();
+ if (is_object($value) && $value instanceof $className) {
continue;
}

0 comments on commit bc0ec33

Please sign in to comment.