Skip to content

Commit

Permalink
Fix Type: getUploadDir could not be null
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDev authored Dec 22, 2023
1 parent 5eb80dd commit 9720775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mapping/PropertyMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ public function getUploadName(object $obj): string
*
* @return string|null The upload directory
*/
public function getUploadDir($obj): ?string
public function getUploadDir($obj): string

Check failure on line 295 in src/Mapping/PropertyMapping.php

View workflow job for this annotation

GitHub Actions / PHPStan

PHPDoc tag @return with type string|null is not subtype of native type string.
{
if (!$this->hasDirectoryNamer()) {
return '';
Expand Down

0 comments on commit 9720775

Please sign in to comment.