Skip to content

Fix retrieval of property to work for Astrotomic/translatable #1179

Fix retrieval of property to work for Astrotomic/translatable

Fix retrieval of property to work for Astrotomic/translatable #1179

Triggered via pull request January 25, 2025 17:27
Status Failure
Total duration 37s
Artifacts

phpstan.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
phpstan: src/DataPipes/FillRouteParameterPropertiesDataPipe.php#L27
Call to an undefined method Illuminate\Support\Collection<string, object>::getAttribute().
phpstan: src/Normalizers/Normalized/NormalizedModel.php#L44
Call to an undefined method Illuminate\Support\Collection<string, object>::hasAttribute().
phpstan: src/Resolvers/DataValidationRulesResolver.php#L245
Call to an undefined method Illuminate\Support\Collection<string, object>::hasAttribute().
phpstan: src/RuleInferrers/AttributesRuleInferrer.php#L25
Call to an undefined method Illuminate\Support\Collection<string, object>::getAttributes().
phpstan: src/Support/AttributeCollection.php#L14
Method Spatie\LaravelData\Support\AttributeCollection::makeFromReflectionAttributes() should return static(Spatie\LaravelData\Support\AttributeCollection) but returns Illuminate\Support\Collection<(int|string), object>.
phpstan: src/Support/AttributeCollection.php#L77
PHPDoc tag @return with type T|null is not subtype of native type object|null.
phpstan: src/Support/Factories/DataClassFactory.php#L116
Unsafe call to private method Spatie\LaravelData\Support\Factories\DataClassFactory::resolveRecursiveAttributes() through static::.
phpstan: src/Support/Factories/DataClassFactory.php#L125
Unsafe call to private method Spatie\LaravelData\Support\Factories\DataClassFactory::resolveRecursiveAttributes() through static::.
phpstan: src/Support/TypeScriptTransformer/DataTypeScriptTransformer.php#L56
Call to an undefined method Illuminate\Support\Collection<string, object>::hasAttribute().
phpstan: src/Support/TypeScriptTransformer/DataTypeScriptTransformer.php#L77
Call to an undefined method Illuminate\Support\Collection<string, object>::hasAttribute().
phpstan
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636