Skip to content

🚨 audit should not have a factory #21

🚨 audit should not have a factory

🚨 audit should not have a factory #21

Triggered via push December 24, 2024 16:00
Status Failure
Total duration 45s
Artifacts

phpstan.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
phpstan: src/AuditableObserver.php#L113
Call to an undefined method OwenIt\Auditing\Contracts\Auditable::withoutRelations().
phpstan: src/Contracts/Auditable.php#L14
Generic type Illuminate\Database\Eloquent\Relations\MorphMany<OwenIt\Auditing\Models\Audit> in PHPDoc tag @return does not specify all template types of class Illuminate\Database\Eloquent\Relations\MorphMany: TRelatedModel, TDeclaringModel
phpstan: src/Drivers/Database.php#L38
Parameter #1 $query of method Illuminate\Database\Eloquent\Builder<OwenIt\Auditing\Models\Audit>::leftJoinSub() expects Closure|Illuminate\Database\Eloquent\Builder<*>|Illuminate\Database\Query\Builder|string, Illuminate\Database\Eloquent\Relations\MorphMany<OwenIt\Auditing\Models\Audit> given.
phpstan: src/Events/DispatchAudit.php#L30
Method OwenIt\Auditing\Events\DispatchAudit::__serialize() return type has no value type specified in iterable type array.
phpstan: src/Events/DispatchAudit.php#L36
Call to an undefined method OwenIt\Auditing\Contracts\Auditable::getQueueableConnection().
phpstan: src/Events/DispatchAudit.php#L71
Method OwenIt\Auditing\Events\DispatchAudit::__unserialize() has parameter $values with no value type specified in iterable type array.
phpstan: src/Events/DispatchAudit.php#L73
Property OwenIt\Auditing\Events\DispatchAudit::$model (OwenIt\Auditing\Contracts\Auditable) does not accept object.
phpstan: src/Events/DispatchAudit.php#L80
Method OwenIt\Auditing\Events\DispatchAudit::__unserialize() with return type void returns array but should not return anything.
phpstan: src/Events/DispatchAudit.php#L86
Method OwenIt\Auditing\Events\DispatchAudit::setModelPropertyValue() has no return type specified.
phpstan: src/Events/DispatchAudit.php#L86
Method OwenIt\Auditing\Events\DispatchAudit::setModelPropertyValue() has parameter $reflection with generic class ReflectionClass but does not specify its types: T
phpstan
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636