Skip to content

Commit

Permalink
add missing type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
Guite committed Feb 4, 2024
1 parent 8ed5d1e commit ff032fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class AutoCompletionRelationTransformer {
/**
* Transforms a single object or a list of objects to a string with identifiers.
*/
public function transform($entities)
public function transform(mixed $entities): mixed
{
$result = '';
if (null === $entities) {
Expand Down Expand Up @@ -78,7 +78,7 @@ class AutoCompletionRelationTransformer {
*
* @throws TransformationFailedException if entity is not found
*/
public function reverseTransform($value): mixed
public function reverseTransform(mixed $value): mixed
{
if (!$value) {
return $this->isMultiple ? new ArrayCollection() : null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class UploadFileTransformer {
/**
* Transforms a filename to the corresponding upload input array.
*/
public function transform($file)
public function transform(mixed $file): mixed
{
return [
$this->fieldName => $file,
Expand All @@ -63,7 +63,7 @@ class UploadFileTransformer {
/**
* Transforms a result array back to the File object.
*/
public function reverseTransform($data): mixed
public function reverseTransform(mixed $data): mixed
{
$deleteFile = false;
$uploadedFile = null;
Expand Down

0 comments on commit ff032fa

Please sign in to comment.