We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85d1e44 commit cca41ebCopy full SHA for cca41eb
src/Task.php
@@ -146,7 +146,7 @@ public function results(): HasMany
146
*
147
* @return Result|null
148
*/
149
- public function getLastResultAttribute(): Result|null
+ public function getLastResultAttribute(): ?Result
150
{
151
return $this->results()->orderBy('id', 'desc')->first();
152
}
tests/Feature/ViewDashboardTest.php
@@ -74,8 +74,8 @@ public function test_view_dashboard_multiple_tasks_with_multiple_results()
74
75
76
/**
77
- * @param int $task_count
78
- * @param int $result_count
+ * @param int $task_count
+ * @param int $result_count
79
* @return mixed
80
81
private function _get_task_with_results(int $task_count = 1, int $result_count = 1): mixed
0 commit comments