Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvanassche authored and actions-user committed Nov 12, 2021
1 parent 276e9f0 commit d04bd5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/Attributes/DataCollectionOf.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ class DataCollectionOf
public function __construct(
/** @var class-string<\Spatie\LaravelData\Data> $class */
public string $class
)
{
) {
if (! is_subclass_of($this->class, Data::class)) {
throw new CannotFindDataTypeForProperty('Class given does not implement `Data::class`');
}
Expand Down
3 changes: 1 addition & 2 deletions src/Support/DataCollectionAnnotationReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ class DataCollectionAnnotationReader
{
public function getClass(
ReflectionProperty $reflectionProperty
): ?string
{
): ?string {
$comment = $reflectionProperty->getDocComment();

if ($comment === false) {
Expand Down

0 comments on commit d04bd5d

Please sign in to comment.