Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix: using the "with" option in ParamConverters triggered a notice

The following notice was triggered:

  Runtime Notice: Only variables should be passed by reference in
  /home/vagrant/www/project/vendor/propel/propel-bundle/Propel/PropelBundle/Request/ParamConverter/PropelParamConverter.php
  line 193
  • Loading branch information...
commit bc15b927572d3a517873bd5f333c6e392dce4a83 1 parent 94c0d89
@K-Phoen K-Phoen authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  Request/ParamConverter/PropelParamConverter.php
View
3  Request/ParamConverter/PropelParamConverter.php
@@ -190,7 +190,8 @@ protected function findOneBy($classQuery, Request $request)
if (!$this->hasWith) {
return $query->findOne();
} else {
- return reset($query->find());
+ $results = $query->find();
+ return reset($results);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.