Skip to content

Merge pull request #2 from markhuot/markhuot-patch-2 #80

Merge pull request #2 from markhuot/markhuot-patch-2

Merge pull request #2 from markhuot/markhuot-patch-2 #80

Triggered via push October 28, 2023 20:05
Status Failure
Total duration 1m 49s
Artifacts

php.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

11 errors
Run PHPStan: src/actions/AddComponent.php#L14
Method markhuot\keystone\actions\AddComponent::handle() has parameter $data with no value type specified in iterable type array.
Run PHPStan: src/actions/AddComponent.php#L41
Access to an undefined property markhuot\keystone\models\Component::$type.
Run PHPStan: src/actions/AddComponent.php#L42
Access to an undefined property markhuot\keystone\models\Component::$sortOrder.
Run PHPStan: src/actions/AddComponent.php#L54
Method markhuot\keystone\actions\AddComponent::createDefaultChildrenFor() has no return type specified.
Run PHPStan: src/actions/AddComponent.php#L63
Method markhuot\keystone\actions\AddComponent::createDefaultsFor() has no return type specified.
Run PHPStan: src/actions/AddComponent.php#L63
Method markhuot\keystone\actions\AddComponent::createDefaultsFor() has parameter $slotDefaults with generic class Illuminate\Support\Collection but does not specify its types: TKey, TValue
Run PHPStan: src/actions/AddComponent.php#L65
Parameter #1 $value of function collect expects Illuminate\Contracts\Support\Arrayable<(int|string), mixed>|iterable<(int|string), mixed>|null, mixed given.
Run PHPStan: src/actions/AddComponent.php#L65
Parameter #4 $config of method markhuot\keystone\actions\AddComponent::createChild() expects array, mixed given.
Run PHPStan: src/actions/AddComponent.php#L65
Unable to resolve the template type TKey in call to function collect
Run PHPStan: src/actions/AddComponent.php#L65
Unable to resolve the template type TValue in call to function collect
Run Pest
Process completed with exit code 2.