Use AttributeCollection instead of arrays #15
Annotations
10 errors and 1 warning
DocblockTypeContradiction:
src/Factory/ActivityStub.php#L100
src/Factory/ActivityStub.php:100:9: DocblockTypeContradiction: int does not contain null (see https://psalm.dev/155)
|
PossiblyInvalidArrayOffset:
src/Internal/Attribute/AttributeCollection.php#L52
src/Internal/Attribute/AttributeCollection.php:52:29: PossiblyInvalidArrayOffset: Cannot access value on variable $this->attributes using a string offset, expecting class-string (see https://psalm.dev/116)
|
InvalidArgument:
src/Internal/Attribute/AttributeCollection.php#L52
src/Internal/Attribute/AttributeCollection.php:52:29: InvalidArgument: Argument 1 of Temporal\Sugar\Internal\Attribute\AttributeCollection::count expects string, but list<object> provided (see https://psalm.dev/004)
|
PossiblyInvalidArrayOffset:
src/Internal/Attribute/AttributeCollection.php#L61
src/Internal/Attribute/AttributeCollection.php:61:23: PossiblyInvalidArrayOffset: Cannot access value on variable $this->attributes using a string offset, expecting class-string (see https://psalm.dev/116)
|
PropertyTypeCoercion:
src/Internal/Attribute/AttributeCollection.php#L79
src/Internal/Attribute/AttributeCollection.php:79:9: PropertyTypeCoercion: $this->attributes expects 'array<class-string, list<object>>', parent type 'non-empty-array<string, list<object>>' provided (see https://psalm.dev/198)
|
MixedAssignment:
src/Internal/Attribute/AttributeReader.php#L61
src/Internal/Attribute/AttributeReader.php:61:55: MixedAssignment: Unable to determine the type that $interface is being assigned to (see https://psalm.dev/032)
|
MixedArgument:
src/Internal/Attribute/AttributeReader.php#L62
src/Internal/Attribute/AttributeReader.php:62:43: MixedArgument: Argument 1 of Temporal\Sugar\Internal\Attribute\AttributeReader::arrayFromClass cannot be mixed, expecting class-string (see https://psalm.dev/030)
|
PossiblyNullArgument:
src/Internal/RetryOptions.php#L51
src/Internal/RetryOptions.php:51:84: PossiblyNullArgument: Argument 1 of Temporal\Common\RetryOptions::withMaximumAttempts cannot be null, possibly null value provided (see https://psalm.dev/078)
|
PossiblyNullArgument:
src/Internal/RetryOptions.php#L54
src/Internal/RetryOptions.php:54:88: PossiblyNullArgument: Argument 1 of Temporal\Common\RetryOptions::withBackoffCoefficient cannot be null, possibly null value provided (see https://psalm.dev/078)
|
TooManyTemplateParams:
src/VirtualPromise.php#L35
src/VirtualPromise.php:35:34: TooManyTemplateParams: Temporal\Sugar\VirtualPromise has too many template params when extending React\Promise\PromiseInterface, expecting 0 (see https://psalm.dev/184)
|
Psalm Validation (PHP 8.2, OS ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|