1
0
mirror of synced 2025-02-11 17:59:27 +03:00

Compare to null instead of using isset

This commit is contained in:
Jeremy Marc 2012-11-04 19:04:13 -08:00
parent 84477440b6
commit 26dd533662

View File

@ -281,7 +281,7 @@ abstract class AbstractQuery
$value = $values[$class->getSingleIdentifierFieldName()]; $value = $values[$class->getSingleIdentifierFieldName()];
if ( ! isset($value)) { if (null === $value) {
throw new \InvalidArgumentException( throw new \InvalidArgumentException(
"Binding entities to query parameters only allowed for entities that have an identifier." "Binding entities to query parameters only allowed for entities that have an identifier."
); );