Skip to content

Commit

Permalink
Improve
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Jan 2, 2024
1 parent c260fb5 commit de36bad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BaseActiveRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,7 @@ protected function deleteInternal(): int
$lock = $this->optimisticLock();

if ($lock !== null) {
$condition[$lock] = $this->getAttribute($lock);
$condition[$lock] = $this->$lock;

Check failure on line 1124 in src/BaseActiveRecord.php

View workflow job for this annotation

GitHub Actions / PHP 8-ubuntu-latest

InvalidArrayOffset: Cannot access value on variable $condition[$lock] using a string offset, expecting int

Check failure on line 1124 in src/BaseActiveRecord.php

View workflow job for this annotation

GitHub Actions / PHP 8.1-ubuntu-latest

InvalidArrayOffset: Cannot access value on variable $condition[$lock] using a string offset, expecting int

Check failure on line 1124 in src/BaseActiveRecord.php

View workflow job for this annotation

GitHub Actions / PHP 8-ubuntu-latest

InvalidArrayOffset: Cannot access value on variable $condition[$lock] using a string offset, expecting int

$result = $this->deleteAll($condition);

Check failure on line 1126 in src/BaseActiveRecord.php

View workflow job for this annotation

GitHub Actions / PHP 8-ubuntu-latest

PossiblyInvalidArgument: Argument 1 of Yiisoft\ActiveRecord\BaseActiveRecord::deleteAll expects array<array-key, mixed>, but possibly different type non-empty-array<array-key, mixed>|string provided

Check failure on line 1126 in src/BaseActiveRecord.php

View workflow job for this annotation

GitHub Actions / PHP 8.1-ubuntu-latest

PossiblyInvalidArgument: Argument 1 of Yiisoft\ActiveRecord\BaseActiveRecord::deleteAll expects array<array-key, mixed>, but possibly different type non-empty-array<array-key, mixed>|string provided

Check failure on line 1126 in src/BaseActiveRecord.php

View workflow job for this annotation

GitHub Actions / PHP 8-ubuntu-latest

PossiblyInvalidArgument: Argument 1 of Yiisoft\ActiveRecord\BaseActiveRecord::deleteAll expects array<array-key, mixed>, but possibly different type non-empty-array<array-key, mixed>|string provided

Expand Down

0 comments on commit de36bad

Please sign in to comment.