1 | <?php |
||
22 | class Dissociate extends Action |
||
23 | { |
||
24 | use ManageTrait, |
||
25 | ResolverTrait; |
||
26 | |||
27 | /** |
||
28 | * @var int |
||
29 | */ |
||
30 | public $statusCodeSuccess = 201; |
||
31 | |||
32 | /** |
||
33 | * @param string $field |
||
34 | * @param string $source |
||
35 | * @param string $target |
||
36 | * @param int|null $siteId |
||
37 | * @return mixed |
||
38 | * @throws \yii\web\HttpException |
||
39 | */ |
||
40 | public function run( |
||
71 | |||
72 | /** |
||
73 | * @param Association $record |
||
74 | * @return bool |
||
75 | * @throws \Throwable |
||
76 | * @throws \yii\db\StaleObjectException |
||
77 | */ |
||
78 | protected function performAction(Association $record): bool |
||
82 | } |
||
83 |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
integer
values, zero is a special case, in particular the following results might be unexpected: