Fix component pivot lookup #1483
run-tests.yml
on: pull_request
Matrix: mysql
Matrix: postgres13
Matrix: postgres14
Matrix: postgres15
Matrix: sqlite
Matrix: static-analysis
check
5s
Annotations
34 errors
|
Static Analysis - P8.4 - L11.x - prefer-stable
Process completed with exit code 1.
|
|
Static Analysis - P8.4 - L11.x - prefer-stable:
src/Models/Subscriber.php#L40
PHPDoc type array<string, string> of property Cachet\Models\Subscriber::$dispatchesEvents is not covariant with PHPDoc type array<string, class-string> of overridden property Illuminate\Database\Eloquent\Model::$dispatchesEvents.
|
|
Static Analysis - P8.4 - L11.x - prefer-stable:
src/Models/Schedule.php#L88
Method Cachet\Models\Schedule::components() should return Illuminate\Database\Eloquent\Relations\BelongsToMany<Cachet\Models\Component, $this(Cachet\Models\Schedule), Illuminate\Database\Eloquent\Relations\Pivot, 'pivot'> but returns Illuminate\Database\Eloquent\Relations\BelongsToMany<Cachet\Models\Component, $this(Cachet\Models\Schedule), Cachet\Models\ScheduleComponent, 'pivot'>.
|
|
Static Analysis - P8.4 - L11.x - prefer-stable:
src/Models/MetricPoint.php#L39
PHPDoc type array<string, string> of property Cachet\Models\MetricPoint::$dispatchesEvents is not covariant with PHPDoc type array<string, class-string> of overridden property Illuminate\Database\Eloquent\Model::$dispatchesEvents.
|
|
Static Analysis - P8.4 - L11.x - prefer-stable:
src/Models/Metric.php#L59
PHPDoc type array<string, string> of property Cachet\Models\Metric::$dispatchesEvents is not covariant with PHPDoc type array<string, class-string> of overridden property Illuminate\Database\Eloquent\Model::$dispatchesEvents.
|
|
Static Analysis - P8.4 - L11.x - prefer-stable:
src/Models/Incident.php#L77
PHPDoc type array<string, string> of property Cachet\Models\Incident::$dispatchesEvents is not covariant with PHPDoc type array<string, class-string> of overridden property Illuminate\Database\Eloquent\Model::$dispatchesEvents.
|
|
Static Analysis - P8.4 - L11.x - prefer-stable:
src/Http/Resources/Component.php#L33
Parameter #1 $condition of method Illuminate\Http\Resources\Json\JsonResource::when() expects bool, Cachet\Enums\ComponentStatusEnum|null given.
|
|
Static Analysis - P8.4 - L11.x - prefer-stable:
src/Filament/Widgets/Feed.php#L66
Call to an undefined method Illuminate\Http\Client\Response::getBody().
|
|
Static Analysis - P8.4 - L11.x - prefer-lowest
Process completed with exit code 1.
|
|
Static Analysis - P8.4 - L11.x - prefer-lowest:
src/Models/Schedule.php#L88
Method Cachet\Models\Schedule::components() should return Illuminate\Database\Eloquent\Relations\BelongsToMany<Cachet\Models\Component, $this(Cachet\Models\Schedule), Illuminate\Database\Eloquent\Relations\Pivot, 'pivot'> but returns Illuminate\Database\Eloquent\Relations\BelongsToMany<Cachet\Models\Component, $this(Cachet\Models\Schedule), Cachet\Models\ScheduleComponent, 'pivot'>.
|
|
Static Analysis - P8.4 - L11.x - prefer-lowest:
src/Http/Resources/Component.php#L33
Parameter #1 $condition of method Illuminate\Http\Resources\Json\JsonResource::when() expects bool, Cachet\Enums\ComponentStatusEnum|null given.
|
|
Static Analysis - P8.3 - L11.x - prefer-lowest
Process completed with exit code 1.
|
|
Static Analysis - P8.3 - L11.x - prefer-lowest:
src/Models/Schedule.php#L88
Method Cachet\Models\Schedule::components() should return Illuminate\Database\Eloquent\Relations\BelongsToMany<Cachet\Models\Component, $this(Cachet\Models\Schedule), Illuminate\Database\Eloquent\Relations\Pivot, 'pivot'> but returns Illuminate\Database\Eloquent\Relations\BelongsToMany<Cachet\Models\Component, $this(Cachet\Models\Schedule), Cachet\Models\ScheduleComponent, 'pivot'>.
|
|
Static Analysis - P8.3 - L11.x - prefer-lowest:
src/Http/Resources/Component.php#L33
Parameter #1 $condition of method Illuminate\Http\Resources\Json\JsonResource::when() expects bool, Cachet\Enums\ComponentStatusEnum|null given.
|
|
Static Analysis - P8.2 - L11.x - prefer-lowest
Process completed with exit code 1.
|
|
Static Analysis - P8.2 - L11.x - prefer-lowest:
src/Models/Schedule.php#L88
Method Cachet\Models\Schedule::components() should return Illuminate\Database\Eloquent\Relations\BelongsToMany<Cachet\Models\Component, $this(Cachet\Models\Schedule), Illuminate\Database\Eloquent\Relations\Pivot, 'pivot'> but returns Illuminate\Database\Eloquent\Relations\BelongsToMany<Cachet\Models\Component, $this(Cachet\Models\Schedule), Cachet\Models\ScheduleComponent, 'pivot'>.
|
|
Static Analysis - P8.2 - L11.x - prefer-lowest:
src/Http/Resources/Component.php#L33
Parameter #1 $condition of method Illuminate\Http\Resources\Json\JsonResource::when() expects bool, Cachet\Enums\ComponentStatusEnum|null given.
|
|
Static Analysis - P8.3 - L11.x - prefer-stable
Process completed with exit code 1.
|
|
Static Analysis - P8.3 - L11.x - prefer-stable:
src/Models/Subscriber.php#L40
PHPDoc type array<string, string> of property Cachet\Models\Subscriber::$dispatchesEvents is not covariant with PHPDoc type array<string, class-string> of overridden property Illuminate\Database\Eloquent\Model::$dispatchesEvents.
|
|
Static Analysis - P8.3 - L11.x - prefer-stable:
src/Models/Schedule.php#L88
Method Cachet\Models\Schedule::components() should return Illuminate\Database\Eloquent\Relations\BelongsToMany<Cachet\Models\Component, $this(Cachet\Models\Schedule), Illuminate\Database\Eloquent\Relations\Pivot, 'pivot'> but returns Illuminate\Database\Eloquent\Relations\BelongsToMany<Cachet\Models\Component, $this(Cachet\Models\Schedule), Cachet\Models\ScheduleComponent, 'pivot'>.
|
|
Static Analysis - P8.3 - L11.x - prefer-stable:
src/Models/MetricPoint.php#L39
PHPDoc type array<string, string> of property Cachet\Models\MetricPoint::$dispatchesEvents is not covariant with PHPDoc type array<string, class-string> of overridden property Illuminate\Database\Eloquent\Model::$dispatchesEvents.
|
|
Static Analysis - P8.3 - L11.x - prefer-stable:
src/Models/Metric.php#L59
PHPDoc type array<string, string> of property Cachet\Models\Metric::$dispatchesEvents is not covariant with PHPDoc type array<string, class-string> of overridden property Illuminate\Database\Eloquent\Model::$dispatchesEvents.
|
|
Static Analysis - P8.3 - L11.x - prefer-stable:
src/Models/Incident.php#L77
PHPDoc type array<string, string> of property Cachet\Models\Incident::$dispatchesEvents is not covariant with PHPDoc type array<string, class-string> of overridden property Illuminate\Database\Eloquent\Model::$dispatchesEvents.
|
|
Static Analysis - P8.3 - L11.x - prefer-stable:
src/Http/Resources/Component.php#L33
Parameter #1 $condition of method Illuminate\Http\Resources\Json\JsonResource::when() expects bool, Cachet\Enums\ComponentStatusEnum|null given.
|
|
Static Analysis - P8.3 - L11.x - prefer-stable:
src/Filament/Widgets/Feed.php#L66
Call to an undefined method Illuminate\Http\Client\Response::getBody().
|
|
Static Analysis - P8.2 - L11.x - prefer-stable
Process completed with exit code 1.
|
|
Static Analysis - P8.2 - L11.x - prefer-stable:
src/Models/Subscriber.php#L40
PHPDoc type array<string, string> of property Cachet\Models\Subscriber::$dispatchesEvents is not covariant with PHPDoc type array<string, class-string> of overridden property Illuminate\Database\Eloquent\Model::$dispatchesEvents.
|
|
Static Analysis - P8.2 - L11.x - prefer-stable:
src/Models/Schedule.php#L88
Method Cachet\Models\Schedule::components() should return Illuminate\Database\Eloquent\Relations\BelongsToMany<Cachet\Models\Component, $this(Cachet\Models\Schedule), Illuminate\Database\Eloquent\Relations\Pivot, 'pivot'> but returns Illuminate\Database\Eloquent\Relations\BelongsToMany<Cachet\Models\Component, $this(Cachet\Models\Schedule), Cachet\Models\ScheduleComponent, 'pivot'>.
|
|
Static Analysis - P8.2 - L11.x - prefer-stable:
src/Models/MetricPoint.php#L39
PHPDoc type array<string, string> of property Cachet\Models\MetricPoint::$dispatchesEvents is not covariant with PHPDoc type array<string, class-string> of overridden property Illuminate\Database\Eloquent\Model::$dispatchesEvents.
|
|
Static Analysis - P8.2 - L11.x - prefer-stable:
src/Models/Metric.php#L59
PHPDoc type array<string, string> of property Cachet\Models\Metric::$dispatchesEvents is not covariant with PHPDoc type array<string, class-string> of overridden property Illuminate\Database\Eloquent\Model::$dispatchesEvents.
|
|
Static Analysis - P8.2 - L11.x - prefer-stable:
src/Models/Incident.php#L77
PHPDoc type array<string, string> of property Cachet\Models\Incident::$dispatchesEvents is not covariant with PHPDoc type array<string, class-string> of overridden property Illuminate\Database\Eloquent\Model::$dispatchesEvents.
|
|
Static Analysis - P8.2 - L11.x - prefer-stable:
src/Http/Resources/Component.php#L33
Parameter #1 $condition of method Illuminate\Http\Resources\Json\JsonResource::when() expects bool, Cachet\Enums\ComponentStatusEnum|null given.
|
|
Static Analysis - P8.2 - L11.x - prefer-stable:
src/Filament/Widgets/Feed.php#L66
Call to an undefined method Illuminate\Http\Client\Response::getBody().
|
|
check
Process completed with exit code 1.
|