Skip to content

Commit

Permalink
TASK: Allow UriBuilder::setFormat(NULL)
Browse files Browse the repository at this point in the history
Php 8.3 deprecates allow passing NULL to `strtolower`
  • Loading branch information
mhsdesign committed May 14, 2024
1 parent f6e9010 commit ca49686
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Neos.Flow/Classes/Mvc/Routing/UriBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,18 +159,18 @@ public function getSection()
/**
* Specifies the format of the target (e.g. "html" or "xml")
*
* @param string $format (e.g. "html" or "xml"), will be transformed to lowercase!
* @param string|null $format (e.g. "html" or "xml"), will be transformed to lowercase!
* @return UriBuilder the current UriBuilder to allow method chaining
* @api
*/
public function setFormat($format)
{
$this->format = strtolower($format);
$this->format = $format !== null ? strtolower($format) : null;
return $this;
}

/**
* @return string
* @return string|null
* @api
*/
public function getFormat()
Expand Down

0 comments on commit ca49686

Please sign in to comment.