Skip to content

Commit

Permalink
we can ArrayAccess null values again
Browse files Browse the repository at this point in the history
  • Loading branch information
Hedzer committed Apr 12, 2024
1 parent 5067587 commit 80db9c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Doctrine/Record.php
Original file line number Diff line number Diff line change
Expand Up @@ -1619,8 +1619,8 @@ public function coreSetRelated($name, $value)
*/
public function contains($fieldName)
{
if (array_key_exists($fieldName, $this->_data)) {
return isset($this->_data[$fieldName]) && !$this->_data[$fieldName] instanceof \Doctrine_Null;
if (array_key_exists($fieldName, $this->_data) && !$this->_data[$fieldName] instanceof \Doctrine_Null) {
return true;
}
if (isset($this->_id[$fieldName])) {
return true;
Expand Down

0 comments on commit 80db9c6

Please sign in to comment.