Skip to content

Commit be36f28

Browse files
Prevent null from being used as an array key.
Since PHP 8.5 using null as array key is deprecated. If used as an array key is converted to an empty string, which is most likely not a valid key in the properties array.
1 parent 6731f32 commit be36f28

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Behavior/Binary.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function rewriteCondition(Condition $condition, $relation = null)
7979
* {@see \ipl\Orm\Compat\FilterProcessor::requireAndResolveFilterColumns()}
8080
*/
8181
$column = $condition->metaData()->get('columnName');
82-
if (isset($this->properties[$column])) {
82+
if ($column !== null && isset($this->properties[$column])) {
8383
$value = $condition->metaData()->get('originalValue');
8484

8585
if ($this->isPostgres && is_resource($value)) {

0 commit comments

Comments
 (0)