Skip to content

Commit

Permalink
Fix union types issues
Browse files Browse the repository at this point in the history
  • Loading branch information
reimic committed Mar 13, 2024
1 parent 6562cc7 commit 12bbf48
Show file tree
Hide file tree
Showing 3 changed files with 273 additions and 99 deletions.
7 changes: 4 additions & 3 deletions src/WordPress/Blueprints/Model/DataClass/UrlResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ public function setResource( string $resource ) {


public function setUrl( string $url ) {
// @TODO mapper supposedly sets values with setters, so why does this not set the caption?
$this->url = $url;
if ( ! $this->caption ) {
$this->caption = 'Downloading ' . $url;
}
// if ( ! $this->caption ) {
// $this->caption = 'Downloading ' . $url;
// }

return $this;
}
Expand Down
Loading

0 comments on commit 12bbf48

Please sign in to comment.