Skip to content

Commit 77523bc

Browse files
committed
Phan fixes
1 parent 1662b0a commit 77523bc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Model/QueuedTask.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ public function markJobDone($id) {
144144
* @param string $failureMessage A message to append to the failure message field (optional)
145145
* @return bool Success
146146
* @todo Remove / reimplement getDataSource()->value
147+
* @suppress PhanUndeclaredMethod
147148
*/
148149
public function markJobFailed($id, $failureMessage = null) {
149150
$conditions = compact('id');
@@ -169,7 +170,7 @@ public function getLength($taskName = null) {
169170
$conditions['task'] = $taskName;
170171
}
171172

172-
return $this->find('count', compact('conditions'));
173+
return (int)$this->find('count', compact('conditions'));
173174
}
174175

175176
/**

0 commit comments

Comments
 (0)