Fix retrieval of property to work for Astrotomic/translatable #1178
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#L40
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#L74
PHPDoc tag @return with type T|null is not subtype of native type object|null.
|
phpstan:
src/Support/Factories/DataClassFactory.php#L117
Unsafe call to private method Spatie\LaravelData\Support\Factories\DataClassFactory::resolveRecursiveAttributes() through static::.
|
phpstan:
src/Support/Factories/DataClassFactory.php#L126
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
Process completed with exit code 1.
|
phpstan
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|